summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386/crti.S
blob: cd0194975cb49e5ec2f6c82bf30b230e6103ddd2 (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
	.section .init
.globl _init
	.type	_init, @function
_init:
	pushl	%ebp
	movl	%esp, %ebp
	pushl	%ebx
	call	__get_pc_thunk_bx
	addl	$_GLOBAL_OFFSET_TABLE_, %ebx




	.section .fini
.globl _fini
	.type	_fini, @function
_fini:
	pushl	%ebp
	movl	%esp, %ebp
	pushl	%ebx
	call	__get_pc_thunk_bx
	addl	$_GLOBAL_OFFSET_TABLE_, %ebx



	.section	.gnu.linkonce.t.__get_pc_thunk_bx,"ax",@progbits
.globl __get_pc_thunk_bx
	.hidden	__get_pc_thunk_bx
	.type	__get_pc_thunk_bx, @function
__get_pc_thunk_bx:
	movl	(%esp), %ebx
	ret