aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/pr21168b.S
blob: a4ea5c9f7dece888d2d196d782eb79d3d93afc20 (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
25
26
27
28
29
	.text
	.globl	bar
	.type	bar, @function
bar:
	call	__x86.get_pc_thunk.ax
	addl	$_GLOBAL_OFFSET_TABLE_, %eax
	lea	foo@GOT, %ecx
	mov	(%eax,%ecx,1), %eax
	ret
	.globl	bar_ifunc
	.type	bar_ifunc, @function
bar_ifunc:
	call	__x86.get_pc_thunk.ax
	addl	$_GLOBAL_OFFSET_TABLE_, %eax
	lea	ifunc@GOT, %ecx
	mov	(%eax,%ecx,1), %eax
	ret
	.type ifunc, @gnu_indirect_function
ifunc:
	mov	$0xbadbeef, %eax
	ret
	.section	.text.__x86.get_pc_thunk.ax,"axG",@progbits,__x86.get_pc_thunk.ax,comdat
	.globl	__x86.get_pc_thunk.ax
	.hidden	__x86.get_pc_thunk.ax
	.type	__x86.get_pc_thunk.ax, @function
__x86.get_pc_thunk.ax:
	movl	(%esp), %eax
	ret
	.section	.note.GNU-stack,"",@progbits