diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-15 00:08:11 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-15 00:08:11 +0000 |
commit | 306eaf8ccf2f3d1ccb8a00fac5e7dba86fa45e6f (patch) | |
tree | 0a0d818792a82d640b9a94ea5dba96ccf64713d5 /bfd | |
parent | dbc881cc3326d1dedc97f8dda7669d6025f1585a (diff) | |
download | gdb-306eaf8ccf2f3d1ccb8a00fac5e7dba86fa45e6f.tar.gz |
2009-05-15 Andrew Stubbs <ams@codesourcery.com>
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf32-arm.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 64119e44a6b..cf4b73f71ca 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index e73b2b68932..1dbac1d77c0 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -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; |