Skip to content

Commit

Permalink
Accomodate newer libbfd mechanics in backward
Browse files Browse the repository at this point in the history
  • Loading branch information
who-biz committed Sep 6, 2023
1 parent a9de4a3 commit 730e07d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions external/backward/backward.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1234,12 +1234,12 @@ class TraceResolverLinuxImpl<trace_resolver_tag::libbfd>:
{
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) {
Expand Down

0 comments on commit 730e07d

Please sign in to comment.