aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/gotpcrel1a.S
blob: 58dfbb1dd82fa63ca3a49afd403165039e221a6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
	.text
	.globl	main
	.type	main, @function
main:
	subq	$8, %rsp
	call   *foo@GOTPCREL(%rip)
	call   *bar@GOTPCREL(%rip)
	call   *plt@GOTPCREL(%rip)
	movq   foo@GOTPCREL(%rip), %rax
	call   *%rax
	movq   bar@GOTPCREL(%rip), %rcx
	call   *%rcx
	movq   plt@GOTPCREL(%rip), %rdx
	call   *%rdx
	xorl	%edi, %edi
	addq	$8, %rsp
	jmp	*myexit@GOTPCREL(%rip)
	.size	main, .-main