diff options
author | Daniel Jacobowitz <drow@false.org> | 2010-02-25 15:40:01 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2010-02-25 15:40:01 +0000 |
commit | eb73e134997d622048918a758b3644b618585411 (patch) | |
tree | f67b22ed218adf5c83ff106c05710d96428f67b6 | |
parent | c67a084a243288154497d1433b8ebfc556bac45c (diff) | |
download | binutils-gdb-eb73e134997d622048918a758b3644b618585411.tar.gz |
* symfile.c (find_lowest_section): Include SEC_ALLOC sections.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/symfile.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0a7191ed61b..d30ce308198 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/symfile.c b/gdb/symfile.c index 87054205bb6..20b3daf892c 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -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 */ |