summaryrefslogtreecommitdiff
path: root/libc/crt0.c
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1997-10-05 15:05:09 +0200
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:40:02 +0200
commit48798bf2eb93ec3b99720ac2e16093441156653d (patch)
tree35e03d95df5f2677f05e32d70abb6d0583aa47ba /libc/crt0.c
parent9d97bc3cb3aecd3416fb7c4be3ca2f436665b696 (diff)
downloaddev86-48798bf2eb93ec3b99720ac2e16093441156653d.tar.gz
Import Dev86src-0.13.0.tar.gzv0.13.0
Diffstat (limited to 'libc/crt0.c')
-rw-r--r--libc/crt0.c7
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:");