zig/lib/libc/musl/arch/i386/crt_arch.h
Andrew Kelley 49d1a4c562 move lib dirs to lib subdir
also start prefering NtDll API. so far:
 * NtQueryInformationFile
 * NtClose

adds a performance workaround for windows unicode conversion. but that
should probably be removed before merging
2019-07-15 17:54:50 -04:00

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"
);