mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
17 lines
307 B
C
Vendored
17 lines
307 B
C
Vendored
__asm__(
|
|
".text\n"
|
|
".weak _DYNAMIC \n"
|
|
".hidden _DYNAMIC \n"
|
|
".global " START "\n"
|
|
".type " START ",%function \n"
|
|
START ":\n"
|
|
" xor %ebp,%ebp \n"
|
|
" mov %esp,%eax \n"
|
|
" and $-16,%esp \n"
|
|
" push %eax \n"
|
|
" push %eax \n"
|
|
" call 1f \n"
|
|
"1: addl $_DYNAMIC-1b,(%esp) \n"
|
|
" push %eax \n"
|
|
" call " START "_c \n"
|
|
);
|