mcst-linux-kernel/patches-2024.06.26/cairo-1.17.4/0007-binutils-2.34-compat.p...

22 lines
638 B
Diff

--- orig/util/cairo-trace/lookup-symbol.c 2020-02-10 10:13:55.506579909 +0300
+++ new/util/cairo-trace/lookup-symbol.c 2020-02-10 10:15:17.499583377 +0300
@@ -145,14 +145,14 @@
if (symbol->found)
return;
- if ((bfd_get_section_flags (symtab->bfd, section) & SEC_ALLOC) == 0)
- return;
+ 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;