mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-09 16:23:23 +03:00
20 lines
379 B
C
20 lines
379 B
C
|
__asm__(
|
||
|
".section .sdata,\"aw\"\n"
|
||
|
".text\n"
|
||
|
".global " START "\n"
|
||
|
".type " START ",%function\n"
|
||
|
START ":\n"
|
||
|
".weak __global_pointer$\n"
|
||
|
".hidden __global_pointer$\n"
|
||
|
".option push\n"
|
||
|
".option norelax\n\t"
|
||
|
"lla gp, __global_pointer$\n"
|
||
|
".option pop\n\t"
|
||
|
"mv a0, sp\n"
|
||
|
".weak _DYNAMIC\n"
|
||
|
".hidden _DYNAMIC\n\t"
|
||
|
"lla a1, _DYNAMIC\n\t"
|
||
|
"andi sp, sp, -16\n\t"
|
||
|
"tail " START "_c"
|
||
|
);
|