27 lines
738 B
Diff
27 lines
738 B
Diff
|
--- cairo-1.17.2/util/cairo-trace/lookup-symbol.c.orig 2020-02-29 12:26:11.482000000 +0100
|
||
|
+++ cairo-1.17.2/util/cairo-trace/lookup-symbol.c 2020-02-29 12:27:06.224000000 +0100
|
||
|
@@ -67,6 +67,14 @@
|
||
|
#include <bfd.h>
|
||
|
#include <libiberty.h>
|
||
|
|
||
|
+#ifndef bfd_get_section_flags
|
||
|
+#define bfd_get_section_flags(H, S) bfd_section_flags(S)
|
||
|
+#endif /* bfd_get_section_flags */
|
||
|
+
|
||
|
+#ifndef bfd_get_section_vma
|
||
|
+#define bfd_get_section_vma(H, S) bfd_section_vma(S)
|
||
|
+#endif /* bfd_get_section_vma */
|
||
|
+
|
||
|
struct symtab {
|
||
|
bfd *bfd;
|
||
|
asymbol **syms;
|
||
|
@@ -152,7 +160,7 @@
|
||
|
if (symbol->pc < vma)
|
||
|
return;
|
||
|
|
||
|
- size = bfd_section_size (symtab->bfd, section);
|
||
|
+ size = bfd_section_size (section);
|
||
|
if (symbol->pc >= vma + size)
|
||
|
return;
|
||
|
|