mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
0b65791f7d
* ld-sh/sh64/dlsection-1.s, ld-sh/sh64/dlsection.sd: New.
18 lines
334 B
ArmAsm
18 lines
334 B
ArmAsm
! Test gc-sections and datalabel references.
|
|
!
|
|
! Datalabel reference to symbol in section .text2 should
|
|
! prevent .text2 from being discarded.
|
|
! Section .spurious can be discarded.
|
|
.mode SHmedia
|
|
|
|
.text
|
|
.global start
|
|
.global foo
|
|
start: .long datalabel foo
|
|
|
|
.section .text2,"ax"
|
|
foo: .long 23
|
|
|
|
.section .spurious,"ax"
|
|
.long 17
|