summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-ifunc/ifunc-22-x86-64.s
blob: d4194a0fba6b594a2057182a38c18bd041ece177 (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
	.text
	.type start,"function"
	.global start
start:
	.type _start,"function"
	.global _start
_start:
	.type __start,"function"
	.global __start
__start:
	.type __start,"function"
	call	*foo@GOTPCREL(%rip)
	jmp	*foo@GOTPCREL(%rip)
	add	foo@GOTPCREL(%rip), %rax
	movq    foo@GOTPCREL(%rip), %rax
	test	%rax, foo@GOTPCREL(%rip)
	movq    bar@GOTPCREL(%rip), %rax
	.type foo, %gnu_indirect_function
	.globl foo
foo:
	ret
	.type bar, %function
bar:
	ret