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

11 lines
136 B
ArmAsm

.text
.globl _start
_start:
.nop
.section .unused1, "ax", %progbits
.nop
.section .gnu.note1, "o", %note, .unused1
.word 2