diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2008-09-17 07:50:29 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2008-09-17 07:50:29 +0000 |
commit | 2a7b2e88e38cbd83225e9c3b28a990de56dccef7 (patch) | |
tree | 5a8ae06b9f452694184c05f9b9576ccc36c6266a /ld/testsuite/ld-elf/eh-group1.s | |
parent | 32649b97b910a25743777a9ef0c7ba2a0bae3e35 (diff) | |
download | gdb-2a7b2e88e38cbd83225e9c3b28a990de56dccef7.zip gdb-2a7b2e88e38cbd83225e9c3b28a990de56dccef7.tar.gz gdb-2a7b2e88e38cbd83225e9c3b28a990de56dccef7.tar.bz2 |
bfd/
PR 6893 - Do not consider FDEs for discarded sections as invalid.
* elf-eh-frame.c (_bfd_elf_parse_eh_frame): New REQUIRE_CLEARED_RELOCS.
Consider FDEs with cleared relocations as valid and ignorable.
ld/testsuite/
* ld-elf/eh-group.exp, ld-elf/eh-group1.s, ld-elf/eh-group2.s: New test.
binutils/
Suppress warnings on NONE relocations to discarded sections.
* readelf.c (is_none_reloc): New function.
(debug_apply_relocations): Ignore is_none_reloc() relocations.
Diffstat (limited to 'ld/testsuite/ld-elf/eh-group1.s')
-rw-r--r-- | ld/testsuite/ld-elf/eh-group1.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/eh-group1.s b/ld/testsuite/ld-elf/eh-group1.s new file mode 100644 index 0000000..ebbe318 --- /dev/null +++ b/ld/testsuite/ld-elf/eh-group1.s @@ -0,0 +1,6 @@ + .section sect, "axG", @progbits, sectgroup, comdat + .global _start +_start: + .cfi_startproc + .skip 16 + .cfi_endproc |