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



.section .fini
.global _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
.global __get_pc_thunk_bx
.hidden	__get_pc_thunk_bx
.type   __get_pc_thunk_bx,%function
__get_pc_thunk_bx:
	movl	(%esp), %ebx
	ret