mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
support older versions of bfd
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24491 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f9c1ccddf1
commit
2b5e6d258c
1 changed files with 7 additions and 1 deletions
|
@ -371,7 +371,13 @@ static void find_address (bfd *abfd, asection *section,
|
||||||
address = (bfd_vma) (intptr_t)info->theAddress;
|
address = (bfd_vma) (intptr_t)info->theAddress;
|
||||||
|
|
||||||
vma = bfd_get_section_vma (abfd, section);
|
vma = bfd_get_section_vma (abfd, section);
|
||||||
size = bfd_get_section_size (section);
|
|
||||||
|
#if defined(bfd_get_section_size)
|
||||||
|
size = bfd_get_section_size (section); // recent
|
||||||
|
#else
|
||||||
|
size = bfd_section_size (abfd, section); // older version
|
||||||
|
#endif
|
||||||
|
|
||||||
if (address < vma || address >= vma + size)
|
if (address < vma || address >= vma + size)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue