diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2021-02-23 11:36:24 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2021-02-23 12:29:58 +0000 |
commit | e30259f6237571c61992433c110bc6e1ef900244 (patch) | |
tree | fe0cb239f38091c71be79822d675297bbadb6b6e /util | |
parent | d6c1787ac1a705f129f3d56b6058f02129535796 (diff) | |
download | cairo-e30259f6237571c61992433c110bc6e1ef900244.tar.gz |
cairo-trace: fix build with newer versions of bfd
And update configure/meson checks to check for the new function.
Drop libiberty.h check since it's only needed by backtrace-symbols.c
which we're about to remove.
Closes #391, #460
Diffstat (limited to 'util')
-rw-r--r-- | util/cairo-trace/lookup-symbol.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/util/cairo-trace/lookup-symbol.c b/util/cairo-trace/lookup-symbol.c index f9665b36f..9af0b5944 100644 --- a/util/cairo-trace/lookup-symbol.c +++ b/util/cairo-trace/lookup-symbol.c @@ -65,7 +65,6 @@ #if HAVE_BFD #include <bfd.h> -#include <libiberty.h> struct symtab { bfd *bfd; @@ -145,14 +144,14 @@ find_address_in_section (bfd *abfd, if (symbol->found) return; - if ((bfd_get_section_flags (symtab->bfd, section) & SEC_ALLOC) == 0) + if ((bfd_section_flags (section) & SEC_ALLOC) == 0) return; - vma = bfd_get_section_vma (symtab->bfd, section); + vma = bfd_section_vma (section); if (symbol->pc < vma) return; - size = bfd_section_size (symtab->bfd, section); + size = bfd_section_size (section); if (symbol->pc >= vma + size) return; |