• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 __asm__(
2 ".text \n"
3 ".global " START " \n"
4 ".type   " START ", %function \n"
5 START ": \n"
6 "	bl 1f \n"
7 ".weak _DYNAMIC \n"
8 ".hidden _DYNAMIC \n"
9 "	.long _DYNAMIC-. \n"
10 "1:	mflr 4 \n"
11 "	lwz 3, 0(4) \n"
12 "	add 4, 3, 4 \n"
13 "	mr 3, 1 \n"
14 "	clrrwi 1, 1, 4 \n"
15 "	li 0, 0 \n"
16 "	stwu 1, -16(1) \n"
17 "	mtlr 0 \n"
18 "	stw 0, 0(1) \n"
19 "	bl " START "_c \n"
20 );
21