aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sh/start.s
blob: 71071ed33bdd9c87a1802c8c999ccb6ba74f724a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
	.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: