summaryrefslogtreecommitdiffstats
path: root/ld/testsuite/ld-i386/vxworks1-lib.s
blob: d2bbac074daebbf3fa0597355d94ba7c5bb36b7c (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
	.text
	.globl	foo
	.type	foo, @function
foo:
	push	%ebx
	movl	__GOTT_BASE__, %ebx
	movl	__GOTT_INDEX__(%ecx), %ebx
	movl	x@GOT(%ebx), %eax
	incl	(%eax)
	call	slocal@plt
	call	sglobal@plt
	call	sexternal@plt
	pop	%ebx
	ret
	.size	foo, .-foo

	.type	slocal, @function
slocal:
	ret
	.size	slocal, .-slocal

	.globl	sglobal
	.type	sglobal, @function
sglobal:
	ret
	.size	sglobal, .-sglobal

	.comm	x,4,4
OpenPOWER on IntegriCloud