* elf.c (assign_file_positions_for_load_sections): Don't check
authorAlan Modra <amodra@gmail.com>
Mon, 7 May 2007 01:05:46 +0000 (01:05 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 7 May 2007 01:05:46 +0000 (01:05 +0000)
core segment.

bfd/ChangeLog
bfd/elf.c

index d136f6c35d627c036a0a0389ad0591ebd1a4a0aa..87b552b7863f9e3cec4800cdef61a6621f282526 100644 (file)
@@ -1,3 +1,8 @@
+2007-05-07  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf.c (assign_file_positions_for_load_sections): Don't check
+       core segment.
+
 2007-05-04  H.J. Lu  <hongjiu.lu@intel.com>
 
        * elflink.c (elf_link_sort_relocs): Return if both .rela.dyn
index 1314bba7449808bb2a1690471452ead2f1591894..ec0c1b3e9d141d5bdc4cf5c9e68db8c42c6a9f5d 100644 (file)
--- 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;