about summary refs log tree commit diff
path: root/arch/loongarch64/crt_arch.h
blob: e0760d9ee8fb0e8c403c91b9db3e29ab5585c3b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
__asm__(
".text \n"
".global " START "\n"
".type   " START ", @function\n"
START ":\n"
"	move $fp, $zero\n"
"	move $a0, $sp\n"
".weak _DYNAMIC\n"
".hidden _DYNAMIC\n"
"	la.local $a1, _DYNAMIC\n"
"	bstrins.d $sp, $zero, 3, 0\n"
"	b " START "_c\n"
);