* symfile.c (find_lowest_section): Include SEC_ALLOC sections.

This commit is contained in:
Daniel Jacobowitz 2010-02-25 15:40:01 +00:00
parent c67a084a24
commit eb73e13499
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
* symfile.c (find_lowest_section): Include SEC_ALLOC sections.
2010-02-24 Pedro Alves <pedro@codesourcery.com>
* mi/mi-main.c (mi_cmd_execute): Fix typo.

View File

@ -297,7 +297,7 @@ find_lowest_section (bfd *abfd, asection *sect, void *obj)
{
asection **lowest = (asection **) obj;
if (0 == (bfd_get_section_flags (abfd, sect) & SEC_LOAD))
if (0 == (bfd_get_section_flags (abfd, sect) & (SEC_ALLOC | SEC_LOAD)))
return;
if (!*lowest)
*lowest = sect; /* First loadable section */