summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm/crtn.S
blob: 7a1ca1ab1ed63f2781ce623b7c4416fe7dc3dcdf (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
34
	.file	"initfini.c"
	
	.section .init
	.global	_init
	.type	_init, %function
#if defined __thumb__
	.align	1
	.thumb
	@ this will not work on ARMv4T, but lots of stuff
	@ in here won't work there anyway...
	pop	{r4-r7, pc}
#else
	.align	2
	.arm
	ldmdb	fp, {r4, r5, r6, r7, r8, r9, sl, fp, sp, pc}
#endif
	.size	_init, .-_init
	
	.section .fini
	.global	_fini
	.type	_fini, %function
#if defined __thumb__
	.align	1
	.thumb
	pop	{r4-r7, pc}
#else
	.align	2
	.arm
	ldmdb	fp, {r4, r5, r6, r7, r8, r9, sl, fp, sp, pc}
#endif
	.size	_fini, .-_fini
	
	@ In fact this is modified to 3.4.4
	.ident	"GCC: (GNU) 3.3.2 20031005 (Debian prerelease)"