diff options
author | rnordier <rnordier@FreeBSD.org> | 1998-10-09 17:19:51 +0000 |
---|---|---|
committer | rnordier <rnordier@FreeBSD.org> | 1998-10-09 17:19:51 +0000 |
commit | 017fa2eb672b0fc3ac44ef8aa47515007a9f33cf (patch) | |
tree | f3db050f7fdf31ca614d46f7d67cb3fd05e8d216 | |
parent | ea04b2f148b655c903a313e19aebee94fbc7641b (diff) | |
download | FreeBSD-src-017fa2eb672b0fc3ac44ef8aa47515007a9f33cf.zip FreeBSD-src-017fa2eb672b0fc3ac44ef8aa47515007a9f33cf.tar.gz |
Get this building as a.out or ELF.
With thanks to: jdp
-rw-r--r-- | sys/boot/i386/boot0/Makefile | 7 | ||||
-rw-r--r-- | sys/boot/i386/boot0/boot0.s | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/sys/boot/i386/boot0/Makefile b/sys/boot/i386/boot0/Makefile index 08fb405..69812b3 100644 --- a/sys/boot/i386/boot0/Makefile +++ b/sys/boot/i386/boot0/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.1.1.1 1998/10/05 10:08:37 rnordier Exp $ +# $Id: Makefile,v 1.2 1998/10/05 19:20:36 rnordier Exp $ PROG= boot0 NOMAN= @@ -10,8 +10,13 @@ M4?= m4 ORG= 0x600 boot0: boot0.o +.if ${OBJFORMAT} == aout + ${LD} -N -s -T ${ORG} -o boot0.out boot0.o + dd if=boot0.out of=${.TARGET} ibs=32 skip=1 +.else ${LD} -N -e start -Ttext ${ORG} -o boot0.out boot0.o /usr/libexec/elf/objcopy -S -O binary boot0.out ${.TARGET} +.endif boot0.o: boot0.m4 boot0.s (cd ${.CURDIR}; ${M4} boot0.m4 boot0.s) | \ diff --git a/sys/boot/i386/boot0/boot0.s b/sys/boot/i386/boot0/boot0.s index cc68d90..41e373a 100644 --- a/sys/boot/i386/boot0/boot0.s +++ b/sys/boot/i386/boot0/boot0.s @@ -13,7 +13,7 @@ # purpose. # -# $Id:$ +# $Id: boot0.s,v 1.1.1.1 1998/10/05 10:08:37 rnordier Exp $ # A 512-byte boot manager. @@ -220,7 +220,7 @@ os_linux: .ascii "Linu"; .byte 'x'|0x80 os_freebsd: .ascii "Free" os_bsd: .ascii "BS"; .byte 'D'|0x80 - .fill start+PRT_OFF-0x3-.,0x1,0x90 + .org PRT_OFF-0x3,0x90 opt: .byte 0x1 # Option ticks: .word 0xb6 # Delay |