aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/got1a.S
blob: f3d5330b05723fe03ee1b2aaf8abc86e01baccbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
	.text
	.globl	main
	.type	main, @function
main:
	subl	$12, %esp
	call	*foo@GOT
	call	*bar@GOT
	call	*plt@GOT
	movl	foo@GOT, %eax
	call	*%eax
	movl	bar@GOT, %eax
	call	*%eax
	movl	plt@GOT, %eax
	call	*%eax
	movl	foo@GOT(%ebx), %ecx
	call	*%ecx
	subl	$12, %esp
	pushl	$0
	pushl	$0	# Push a dummy return address onto stack.
	jmp	*myexit@GOT
	.size	main, .-main