summaryrefslogtreecommitdiff
path: root/arch/powerpc/crt_arch.h
blob: 9b65886f9f78fd32affa7ba8bc5ba7f78f4302e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
__asm__(
".text \n"
".global " START " \n"
".type   " START ", %function \n"
START ": \n"
"	bl 1f \n"
".weak _DYNAMIC \n"
".hidden _DYNAMIC \n"
"	.long _DYNAMIC-. \n"
"1:	mflr 4 \n"
"	lwz 3, 0(4) \n"
"	add 4, 3, 4 \n"
"	mr 3, 1 \n"
"	clrrwi 1, 1, 4 \n"
"	li 0, 0 \n"
"	stwu 1, -16(1) \n"
"	mtlr 0 \n"
"	stw 0, 0(1) \n"
"	bl " START "_c \n"
);