diff options
author | Robert de Bath <rdebath@poboxes.com> | 1996-11-03 22:33:35 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:33:35 +0200 |
commit | c218c617b5be443b7968308506969ad2b726d73c (patch) | |
tree | 0051f396af56133d24fcf2ab757fabc78c1a09bf /libc/crt0.c | |
parent | 0936b9aeab611665645a4e6bafaded7ca76dd189 (diff) | |
parent | 0d2fbe9b1bd284ce2cad55be17e8f2c896031a25 (diff) | |
download | dev86-c218c617b5be443b7968308506969ad2b726d73c.tar.gz |
Import Dev86src-0.0.8.tar.gzv0.0.8
Diffstat (limited to 'libc/crt0.c')
-rw-r--r-- | libc/crt0.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libc/crt0.c b/libc/crt0.c index 71ca6bc..b21b525 100644 --- a/libc/crt0.c +++ b/libc/crt0.c @@ -20,15 +20,20 @@ entry startup ! Crt0 startup startup: br ___cstartup export no_op -no_op: ! Generic no operation call (the byte was free :-) ) +no_op: ! Generic no operation call ret + .ascii __LIBC__ ! Version id. + loc 1 ! Segment 1 is where the pointers to the autostart -ZP_safety: ! functions are stored. + ! functions are stored. +#if !__AS386_32__ +ZP_safety: .word 0 ! But first some zeros to avoid null pointer writes. .word 0 .word 0 .word 0 +#endif export auto_start auto_start: |