aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sh/vxworks1-lib.s
blob: ff215645d6bc4441dfd9b99d164e6298be1d0ff8 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
	.text
	.globl	_foo
	.type	_foo, %function
_foo:
	mov.l	r12,@-r15
	sts.l	pr,@-r15
	mov.l	1f,r12
	mov.l	@r12,r12
	mov.l	2f,r0
	mov.l	@(r0,r12),r12

	mov.l	3f,r0
	mov.l	@(r0,r12),r1
	mov.l	@r1,r2
	add	#1,r2
	mov.l	r2,@r1

	mov.l	4f,r0
	bsrf	r0
	nop
.Lb4:

	mov.l	5f,r0
	bsrf	r0
	nop
.Lb5:

	mov.l	6f,r0
	bsrf	r0
	nop
.Lb6:

	lds.l	@r15+,pr
	rts
	mov.l	@r15+,r12
	.align	2
1:	.long	___GOTT_BASE__
2:	.long	___GOTT_INDEX__
3:	.long	x@GOT
4:	.long	_slocal - .Lb4
5:	.long	_sglobal@PLT - (.Lb5 - .)
6:	.long	_sexternal@PLT - (.Lb6 - .)
	.size	_foo, .-_foo

	.type	_slocal, %function
_slocal:
	rts
	nop
	.size	_slocal, .-_slocal

	.globl	_sglobal
	.type	_sglobal, %function
_sglobal:
	rts
	nop
	.size	_sglobal, .-_sglobal

	.data
	.4byte	_slocal

	.comm	x,4,4