From 48798bf2eb93ec3b99720ac2e16093441156653d Mon Sep 17 00:00:00 2001 From: Robert de Bath Date: Sun, 5 Oct 1997 15:05:09 +0200 Subject: Import Dev86src-0.13.0.tar.gz --- libc/crt0.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libc/crt0.c') 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:"); -- cgit v1.2.1