aboutsummaryrefslogtreecommitdiffstats
path: root/community/cloudi/fix-new-binutils.patch
blob: 1c17523d3455cf7d0b8bca87c390aac608228aff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/external/backward-cpp/backward.hpp b/src/external/backward-cpp/backward.hpp
index 69d5dba..583aa2d 100644
--- a/src/external/backward-cpp/backward.hpp
+++ b/src/external/backward-cpp/backward.hpp
@@ -1235,12 +1235,12 @@ private:
 	{
 		if (result.found) return;
 
-		if ((bfd_get_section_flags(fobj.handle.get(), section)
+		if ((bfd_section_flags(section)
 					& SEC_ALLOC) == 0)
 			return; // a debug section is never loaded automatically.
 
-		bfd_vma sec_addr = bfd_get_section_vma(fobj.handle.get(), section);
-		bfd_size_type size = bfd_get_section_size(section);
+		bfd_vma sec_addr = bfd_section_vma(section);
+		bfd_size_type size = bfd_section_size(section);
 
 		// are we in the boundaries of the section?
 		if (addr < sec_addr || addr >= sec_addr + size) {