mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
0f5e0993ec
* ld-sh/*: New tests for SH relaxing.
28 lines
270 B
ArmAsm
28 lines
270 B
ArmAsm
.section .text
|
|
.global start
|
|
start:
|
|
|
|
mov.l stack_k,r15
|
|
|
|
! call the mainline
|
|
L1:
|
|
mov.l main_k,r0
|
|
.uses L1
|
|
jsr @r0
|
|
nop
|
|
|
|
.align 2
|
|
stack_k:
|
|
.long _stack
|
|
main_k:
|
|
.long _main
|
|
|
|
.global _trap
|
|
_trap:
|
|
trapa #3
|
|
rts
|
|
nop
|
|
|
|
.section .stack
|
|
_stack: .long 0xdeaddead
|