diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-15 00:08:12 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-15 00:08:12 +0000 |
commit | 22a8f80ef54b90cbdd345ec24dd7ad89033062a5 (patch) | |
tree | 29d8e7b64e00f6f690de5ea83a8d1efad4490d48 /bfd/elf32-arm.c | |
parent | 70b24e7fb2f57270e9d9fc54388693482932e467 (diff) | |
download | gdb-22a8f80ef54b90cbdd345ec24dd7ad89033062a5.zip gdb-22a8f80ef54b90cbdd345ec24dd7ad89033062a5.tar.gz gdb-22a8f80ef54b90cbdd345ec24dd7ad89033062a5.tar.bz2 |
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/elf32-arm.c')
-rw-r--r-- | bfd/elf32-arm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index e73b2b6..1dbac1d 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; |