aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pr20253-1.s
blob: 4b9b7a426af4841c5593dcc313378077df3b4c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
	.text
	.globl	foo
	.type	foo, @gnu_indirect_function
foo:
	ret
	.text
	.type	bar, @gnu_indirect_function
bar:
	ret
	.globl	_start
	.type	_start, @function
_start:
	call	*foo@GOTPCREL(%rip)
	jmp	*bar@GOTPCREL(%rip)
	movq	$0, bar@GOTPCREL(%rip)
	cmpq	$0, foo@GOTPCREL(%rip)
	cmpq	foo@GOTPCREL(%rip), %rcx
	cmpq	bar@GOTPCREL(%rip), %rcx