diff options
Diffstat (limited to 'libc/crt0.c')
-rw-r--r-- | libc/crt0.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libc/crt0.c b/libc/crt0.c index bdf1585..819d92f 100644 --- a/libc/crt0.c +++ b/libc/crt0.c @@ -41,14 +41,15 @@ auto_start: #endif /* __AS386_16__ or __AS386_32__ */ #if defined(__GNUC__) && defined(__i386__) -#define CRT0_OK - #ifdef __ELF__ -__asm__(".globl __startup\n__startup:"); +#define CRT0_OK +__asm__(".globl _start\n_start:"); __asm__("jmp __cstartup"); __asm__(".globl __no_op\n__no_op:"); __asm__("ret"); #else + +#error This library is for ELF only, sorry. __asm__(".globl startup\nstartup:"); __asm__("jmp ___cstartup"); __asm__(".globl no_op\nno_op:"); |