mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-22 17:24:23 +01:00
Get this building as a.out or ELF.
With thanks to: jdp
This commit is contained in:
parent
353803b997
commit
4025ae9d2a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40124
@ -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) | \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user