Files
binutils-gdb/ld/testsuite/ld-sh/start.s
Alan Modra 8f401e317a PR10372, SH: ld test with sim/sh/run fails always
PR 10372
	* testsuite/ld-sh/start.s: Add _start sym.  Use trapa 34.  Create
	an alloc .stack section.
2022-08-25 13:33:39 +09:30

32 lines
318 B
ArmAsm

.section .text
.global start
.global _start
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 #34
rts
nop
.section .stack,"aw",%nobits
.balign 4096
.space 4096
_stack: