diff options
author | Vladimir Azarov <avm@intermediate-node.net> | 2024-10-01 15:47:05 +0200 |
---|---|---|
committer | Vladimir Azarov <avm@intermediate-node.net> | 2024-10-01 15:47:05 +0200 |
commit | 4abab5ad6c8465a7528ccdd5f49367da05f78bbd (patch) | |
tree | ebf009bf1376a5a223a915bc27cbbd791a1316bc /arch/i386/crt_arch.h |
Initial version
Diffstat (limited to 'arch/i386/crt_arch.h')
-rw-r--r-- | arch/i386/crt_arch.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/i386/crt_arch.h b/arch/i386/crt_arch.h new file mode 100644 index 0000000..43c8477 --- /dev/null +++ b/arch/i386/crt_arch.h @@ -0,0 +1,16 @@ +__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" +); |