aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-05-07 01:05:46 +0000
committerAlan Modra <amodra@gmail.com>2007-05-07 01:05:46 +0000
commit7c9283002dad24cf84011e40cd3d05231aae6854 (patch)
tree75dce96abcc29ee69e6d1755349f3b11da8ca8f5 /bfd/elf.c
parent34091d9bf9f10f6ea9551fbe48f963c2ada28550 (diff)
downloadgdb-7c9283002dad24cf84011e40cd3d05231aae6854.zip
gdb-7c9283002dad24cf84011e40cd3d05231aae6854.tar.gz
gdb-7c9283002dad24cf84011e40cd3d05231aae6854.tar.bz2
* elf.c (assign_file_positions_for_load_sections): Don't check
core segment.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 1314bba..ec0c1b3 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4641,9 +4641,9 @@ assign_file_positions_for_load_sections (bfd *abfd,
}
}
- /* Check that all sections are in the segment. */
- if (p->p_type == PT_LOAD
- || (p->p_type == PT_NOTE && bfd_get_format (abfd) == bfd_core))
+ /* Check that all sections are in a PT_LOAD segment.
+ Don't check funky gdb generated core files. */
+ if (p->p_type == PT_LOAD && bfd_get_format (abfd) != bfd_core)
for (i = 0, secpp = m->sections; i < m->count; i++, secpp++)
{
Elf_Internal_Shdr *this_hdr;