summarylogtreecommitdiffstats
path: root/fix_binutils234.patch
blob: 56d4378a5b758023536dcf8edaeb05e6b3d6581c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/backtrace-symbols.c b/backtrace-symbols.c
index 4447718..b17460b 100644
--- a/backtrace-symbols.c
+++ b/backtrace-symbols.c
@@ -133,14 +133,14 @@ static void find_address_in_section(bfd *abfd, asection *section, void *data __a
 	if (found)
 		return;
 
-	if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0)
+	if ((bfd_section_flags(section) & SEC_ALLOC) == 0)
 		return;
 
-	vma = bfd_get_section_vma(abfd, section);
+	vma = bfd_section_vma(section);
 	if (pc < vma)
 		return;
 
-	size = bfd_section_size(abfd, section);
+	size = bfd_section_size(section);
 	if (pc >= vma + size)
 		return;