summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2006-06-26 03:45:08 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2006-06-26 03:45:08 +0000
commite9933347a7472ea3f181d9594cb15980a2b4b884 (patch)
treeb6ac217e50cb924a20859d8ac3d51ce4a7a9bc8b
parent90dafd7e32e026a8334bc4ab7019a564f60899db (diff)
Kludge around the fact that redboot uses ELF's vaddr, however maps
memory at 0, not where memory is or where we want the kernel loaded.
-rw-r--r--sys/arch/armish/conf/Makefile.armish7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/armish/conf/Makefile.armish b/sys/arch/armish/conf/Makefile.armish
index 7a2997a91ae..7fa33858cc9 100644
--- a/sys/arch/armish/conf/Makefile.armish
+++ b/sys/arch/armish/conf/Makefile.armish
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.armish,v 1.2 2006/05/30 18:25:42 miod Exp $
+# $OpenBSD: Makefile.armish,v 1.3 2006/06/26 03:45:07 drahn Exp $
# $NetBSD: Makefile.i386,v 1.67 1996/05/11 16:12:11 mycroft Exp $
# Makefile for OpenBSD
@@ -115,7 +115,10 @@ SYSTEM_LD_HEAD+=; \
SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o; \
${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o
-SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
+SYSTEM_LD_TAIL= @dd if=/dev/zero of=bsd bs=1 count=1 seek=95 conv=notrunc 2>/dev/null; \
+ dd if=/dev/zero of=bsd bs=1 count=1 seek=127 conv=notrunc 2>/dev/null; \
+ dd if=/dev/zero of=bsd bs=1 count=1 seek=159 conv=notrunc 2>/dev/null; \
+ ${SIZE} $@; chmod 755 $@
DEBUG?=
.if ${DEBUG} == "-g"