OSDN Git Service

2009-05-15 Andrew Stubbs <ams@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Fri, 15 May 2009 00:08:11 +0000 (00:08 +0000)
committerPaul Brook <paul@codesourcery.com>
Fri, 15 May 2009 00:08:11 +0000 (00:08 +0000)
Paul Brook  <paul@codesourcery.com>

bfd/
* elf32-arm.c (elf32_arm_fix_exidx_coverage): Don't attempt to
fix discarded sections.

ld/testsuite/
* ld-arm/arm-elf.exp: Add unwind-5.
* ld-arm/discard-unwind.ld: New file.
* ld-arm/unwind-5.d: New test.
* ld-arm/unwind-5.s: New test.

bfd/ChangeLog
bfd/elf32-arm.c

index 64119e4..cf4b73f 100644 (file)
@@ -1,3 +1,9 @@
+2009-05-15  Andrew Stubbs  <ams@codesourcery.com>
+       Paul Brook  <paul@codesourcery.com>
+
+       * elf32-arm.c (elf32_arm_fix_exidx_coverage): Don't attempt to
+       fix discarded sections.
+
 2009-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * elf32-spu.c (mark_overlay_section): Move .init and .fini
index e73b2b6..1dbac1d 100644 (file)
@@ -8352,6 +8352,10 @@ elf32_arm_fix_exidx_coverage (asection **text_section_order,
          continue;
        }
 
+      /* Skip /DISCARD/ sections.  */
+      if (bfd_is_abs_section (exidx_sec->output_section))
+       continue;
+
       hdr = &elf_section_data (exidx_sec)->this_hdr;
       if (hdr->sh_type != SHT_ARM_EXIDX)
         continue;