binutils-gdb/ld/testsuite/ld-elf/pr26681.d
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

4 lines
115 B
Makefile

#ld: --gc-sections --print-gc-sections -e _start
#warning_output: pr26681.l
#target: [check_gc_sections_available]