mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-08-18 00:14:45 +00:00

This incoporates pieces from musl-libc, cloudlibc, cloudabi, libpreopen, and dlmalloc, as well as a significant amount of new code.
17 lines
276 B
C
17 lines
276 B
C
__asm__(
|
|
".text\n"
|
|
".weak _DYNAMIC \n"
|
|
".hidden _DYNAMIC \n"
|
|
".global " START "\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"
|
|
);
|