aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pr22842b.S
blob: f0659cd901e31597145da9b55bb10075ff024372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
	.text
	.globl	main
	.type	main,@function
main:
	pushq	%rax
        movslq  bar(%rip), %rax
        leaq    bar(%rip), %rdi
	addq	%rax, %rdi

	callq	foo
	xorl	%eax, %eax
	popq	%rcx
	retq

	.data
	.p2align 2
bar:
	.long	test - .

	.section	.note.GNU-stack,"",@progbits