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:
rfm 2007-02-09 06:20:22 +00:00
parent f9c1ccddf1
commit 2b5e6d258c

View file

@ -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;