summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2006-06-26 03:45:07 +0000
committerdrahn <drahn@openbsd.org>2006-06-26 03:45:07 +0000
commit5e9361c73a39fe79c5f16f582aa12fe3145a00a4 (patch)
treed2fdb5951bc4b1c09864d7f52340e2084bc9f5b9
parentsync (diff)
downloadwireguard-openbsd-5e9361c73a39fe79c5f16f582aa12fe3145a00a4.tar.xz
wireguard-openbsd-5e9361c73a39fe79c5f16f582aa12fe3145a00a4.zip
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"