From 7c9283002dad24cf84011e40cd3d05231aae6854 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 7 May 2007 01:05:46 +0000 Subject: [PATCH] * elf.c (assign_file_positions_for_load_sections): Don't check core segment. --- bfd/ChangeLog | 5 +++++ bfd/elf.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d136f6c..87b552b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-05-07 Alan Modra + + * elf.c (assign_file_positions_for_load_sections): Don't check + core segment. + 2007-05-04 H.J. Lu * elflink.c (elf_link_sort_relocs): Return if both .rela.dyn 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; -- 2.7.4