xref: /aosp_15_r20/external/musl/arch/riscv32/crt_arch.h (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1*c9945492SAndroid Build Coastguard Worker __asm__(
2*c9945492SAndroid Build Coastguard Worker ".section .sdata,\"aw\"\n"
3*c9945492SAndroid Build Coastguard Worker ".text\n"
4*c9945492SAndroid Build Coastguard Worker ".global " START "\n"
5*c9945492SAndroid Build Coastguard Worker ".type " START ",%function\n"
6*c9945492SAndroid Build Coastguard Worker START ":\n"
7*c9945492SAndroid Build Coastguard Worker ".weak __global_pointer$\n"
8*c9945492SAndroid Build Coastguard Worker ".hidden __global_pointer$\n"
9*c9945492SAndroid Build Coastguard Worker ".option push\n"
10*c9945492SAndroid Build Coastguard Worker ".option norelax\n\t"
11*c9945492SAndroid Build Coastguard Worker "lla gp, __global_pointer$\n"
12*c9945492SAndroid Build Coastguard Worker ".option pop\n\t"
13*c9945492SAndroid Build Coastguard Worker "mv a0, sp\n"
14*c9945492SAndroid Build Coastguard Worker ".weak _DYNAMIC\n"
15*c9945492SAndroid Build Coastguard Worker ".hidden _DYNAMIC\n\t"
16*c9945492SAndroid Build Coastguard Worker "lla a1, _DYNAMIC\n\t"
17*c9945492SAndroid Build Coastguard Worker "andi sp, sp, -16\n\t"
18*c9945492SAndroid Build Coastguard Worker "tail " START "_c"
19*c9945492SAndroid Build Coastguard Worker );
20