* symfile.c (find_lowest_section): Include SEC_ALLOC sections.
authorDaniel Jacobowitz <drow@false.org>
Thu, 25 Feb 2010 15:40:01 +0000 (15:40 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 25 Feb 2010 15:40:01 +0000 (15:40 +0000)
gdb/ChangeLog
gdb/symfile.c

index 0a7191ed61b94de74219a458bc287756b58f160c..d30ce308198c10b6a42ca24999c7c4bfaa858ad8 100644 (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.
index 87054205bb620b0954f2c88c17715fa919fd5ccb..20b3daf892c2db69c702dd73012b9ab87b07a804 100644 (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 */