binutils-gdb/ld/testsuite/ld-elf/pr26681.l
H.J. Lu 7026832e52 Allow note sections to be discarded when they are linked to another discarded secction.
PR 26681
bfd	* elflink.c (bfd_elf_gc_sections): Do not arbitrarily keep note
	sections which are linked to another section.

ld	* testsuite/ld-elf/pr26681.s: New test.
	* testsuite/ld-elf/pr26681.d: New test driver.
	* testsuite/ld-elf/pr26681.l: New test output.
2020-10-02 11:08:19 +01:00

6 lines
143 B
Plaintext

#...
.*: removing unused section '\.unused1' in file 'tmpdir/.*\.o'
#...
.*: removing unused section '\.gnu.note1' in file 'tmpdir/.*\.o'
#...