diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-07-20 09:52:35 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-07-20 09:58:45 -0700 |
commit | d5f4da5e334dc4d87d7751a816c15d2bf4db3d43 (patch) | |
tree | 70f6e200b0b9df1cd0f892ccccf72da086c5a2d9 /ld/testsuite | |
parent | 2d38991535ecfcd092f3c57da84844efc3d49877 (diff) | |
download | gdb-d5f4da5e334dc4d87d7751a816c15d2bf4db3d43.zip gdb-d5f4da5e334dc4d87d7751a816c15d2bf4db3d43.tar.gz gdb-d5f4da5e334dc4d87d7751a816c15d2bf4db3d43.tar.bz2 |
ld: Discard .rel.* and .rela.* sections
On many targets, like x86, .rel.dyn/.rela.dyn section is combined from
different .rel/.rela sections by -z combreloc. To discard dynamic
relocation section, we need to discard .rel.* and .rela.* sections
instead of .rel.dyn and .rela.dyn sections.
Note: This test fails for targets which issue a warning when dynamic
section is discarded.
* testsuite/ld-elf/reloc-discard.ld: Discard .rel.* and .rela.*
sections instead of .rel.dyn and .rela.dyn sections.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-elf/reloc-discard.ld | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elf/reloc-discard.ld b/ld/testsuite/ld-elf/reloc-discard.ld index b16b80a..1252bbb 100644 --- a/ld/testsuite/ld-elf/reloc-discard.ld +++ b/ld/testsuite/ld-elf/reloc-discard.ld @@ -2,5 +2,5 @@ SECTIONS { /* .dynamic needs to go first with MIPS IRIX-style emulations. */ .dynamic : { *(.dynamic) } - /DISCARD/ : { *(.rel.dyn) *(.rela.dyn) } + /DISCARD/ : { *(.rel.*) *(.rela.*) } } |