Skip to content

Commit 83da756

Browse files
authored
Merge pull request #165 from okeuday/binutils_2.34
Fix for binutils 2.34
2 parents 03b4595 + 6174c26 commit 83da756

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

backward.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,11 +1388,23 @@ class TraceResolverLinuxImpl<trace_resolver_tag::libbfd>
13881388
if (result.found)
13891389
return;
13901390

1391+
#ifdef bfd_get_section_flags
13911392
if ((bfd_get_section_flags(fobj.handle.get(), section) & SEC_ALLOC) == 0)
1393+
#else
1394+
if ((bfd_section_flags(section) & SEC_ALLOC) == 0)
1395+
#endif
13921396
return; // a debug section is never loaded automatically.
13931397

1398+
#ifdef bfd_get_section_vma
13941399
bfd_vma sec_addr = bfd_get_section_vma(fobj.handle.get(), section);
1400+
#else
1401+
bfd_vma sec_addr = bfd_section_vma(section);
1402+
#endif
1403+
#ifdef bfd_get_section_size
13951404
bfd_size_type size = bfd_get_section_size(section);
1405+
#else
1406+
bfd_size_type size = bfd_section_size(section);
1407+
#endif
13961408

13971409
// are we in the boundaries of the section?
13981410
if (addr < sec_addr || addr >= sec_addr + size) {

0 commit comments

Comments
 (0)