Browse Source
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.users/ARM/morello-binutils-gdb-master
committed by
Nick Clifton
6 changed files with 33 additions and 1 deletions
@ -0,0 +1,3 @@ |
|||
#ld: --gc-sections --print-gc-sections -e _start |
|||
#warning_output: pr26681.l |
|||
#target: [check_gc_sections_available] |
|||
@ -0,0 +1,5 @@ |
|||
#... |
|||
.*: removing unused section '\.unused1' in file 'tmpdir/.*\.o' |
|||
#... |
|||
.*: removing unused section '\.gnu.note1' in file 'tmpdir/.*\.o' |
|||
#... |
|||
@ -0,0 +1,10 @@ |
|||
.text |
|||
.globl _start |
|||
_start: |
|||
.nop |
|||
|
|||
.section .unused1, "ax", %progbits |
|||
.nop |
|||
|
|||
.section .gnu.note1, "o", %note, .unused1 |
|||
.word 2 |
|||
Loading…
Reference in new issue