mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
d3860e2d82
commit
0db5f6bd6d
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;
|
||||
|
||||
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)
|
||||
{
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue