aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/combreloc.s
blob: 2a78a7ce9b58272e5e51cbae2939d599c55da136 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
	.text
	.globl	_start, foo
	.type	_start,@function
_start:
	pushl	%ebp
	movl	%esp, %ebp
        pushl	%ebx
        call	1f
1:	popl	%ebx
	addl	$_GLOBAL_OFFSET_TABLE_+[.-1b], %ebx
	movl	_start@GOT(%ebx), %eax
	movl	(%eax), %eax
	call	foo@PLT
	movl	(%esp), %ebx
	leave
foo:	ret
	.data
	.long	_start
	.section "__libc_subfreeres", "aw", @progbits
	.long	_start
	.section "__libc_atexit", "aw", @progbits
	.long	_start