Browse Source
PR 23648 * testsuite/ld-elf/pr23648.d, * testsuite/ld-elf/pr23648.s, * testsuite/ld-elf/pr23648.t: New test.users/ahayward/variable_sve2
4 changed files with 37 additions and 0 deletions
@ -0,0 +1,9 @@ |
|||
#ld: --gc-sections -T pr23648.t |
|||
#target: [check_gc_sections_available] |
|||
#xfail: frv-*-linux* lm32-*-linux* |
|||
#nm: -B |
|||
|
|||
#failif |
|||
#... |
|||
.*test0 |
|||
#... |
|||
@ -0,0 +1,15 @@ |
|||
.text |
|||
.global entry, _entry |
|||
entry: |
|||
_entry: |
|||
.dc.a foo |
|||
|
|||
.section .text.test0,"ax",%progbits |
|||
.global test0 |
|||
test0: |
|||
.dc.a 0 |
|||
|
|||
.section .text.test1,"ax",%progbits |
|||
.global test1 |
|||
test1: |
|||
.dc.a 1 |
|||
@ -0,0 +1,10 @@ |
|||
MEMORY { code : ORIGIN = 0, LENGTH = 8M } |
|||
|
|||
SECTIONS |
|||
{ |
|||
ENTRY (entry) |
|||
.text 1M : { *(.text*) } >code |
|||
/DISCARD/ : { *(*) } |
|||
} |
|||
|
|||
foo = LENGTH (code) != 8M ? test0 : test1; |
|||
Loading…
Reference in new issue