mirror of
https://github.com/QuasarApp/backward-cpp.git
synced 2025-04-29 20:04:32 +00:00
Fix for binutils 2.34
* For macro changes at https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fd3619828e94a24a92cddec42cbc0ab33352eeb4
This commit is contained in:
parent
03b45955d0
commit
6174c26f76
12
backward.hpp
12
backward.hpp
@ -1388,11 +1388,23 @@ private:
|
||||
if (result.found)
|
||||
return;
|
||||
|
||||
#ifdef bfd_get_section_flags
|
||||
if ((bfd_get_section_flags(fobj.handle.get(), section) & SEC_ALLOC) == 0)
|
||||
#else
|
||||
if ((bfd_section_flags(section) & SEC_ALLOC) == 0)
|
||||
#endif
|
||||
return; // a debug section is never loaded automatically.
|
||||
|
||||
#ifdef bfd_get_section_vma
|
||||
bfd_vma sec_addr = bfd_get_section_vma(fobj.handle.get(), section);
|
||||
#else
|
||||
bfd_vma sec_addr = bfd_section_vma(section);
|
||||
#endif
|
||||
#ifdef bfd_get_section_size
|
||||
bfd_size_type size = bfd_get_section_size(section);
|
||||
#else
|
||||
bfd_size_type size = bfd_section_size(section);
|
||||
#endif
|
||||
|
||||
// are we in the boundaries of the section?
|
||||
if (addr < sec_addr || addr >= sec_addr + size) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user