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:
Richard Frith-MacDonald 2007-02-09 06:20:22 +00:00
parent d3860e2d82
commit 0db5f6bd6d

View file

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