File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments