aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/no-plt-extern1a.S
blob: 3997a2191c8fb12fe4ff5f3bd42bc928b6b09907 (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
30
31
32
33
	.text
	.p2align 4,,15
	.globl	get_func
	.type	get_func, @function
get_func:
	call	__x86.get_pc_thunk.ax
	addl	$_GLOBAL_OFFSET_TABLE_, %eax
	movl	func@GOT(%eax), %eax
	ret
	.size	get_func, .-get_func
	.p2align 4,,15
	.globl	call_func
	.type	call_func, @function
call_func:
	call	__x86.get_pc_thunk.ax
	addl	$_GLOBAL_OFFSET_TABLE_, %eax
	jmp	*func@GOT(%eax)
	.size	call_func, .-call_func
	.globl	func_p
	.section	.data.rel,"aw",@progbits
	.align 4
	.type	func_p, @object
	.size	func_p, 4
func_p:
	.long	func
	.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