summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-12-02 20:57:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-12-02 20:57:09 +0000
commitfaf62ee2ac57cbc763bff89d7dcb6315b1e32b05 (patch)
tree0c663c4baa63769ed04e5f8bae5d7abe9b98af04 /sys
parentf339feb60237a89432a5f66fc164e6c6c505602c (diff)
After the most recent change, make it possible to make -j again. The
early MD and late MI files must be split up so that vers.o can sneak between. Issue spotted by bluhm, repair discussed with miod
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/conf/Makefile.alpha10
-rw-r--r--sys/arch/amd64/conf/Makefile.amd6410
-rw-r--r--sys/arch/armish/conf/Makefile.armish10
-rw-r--r--sys/arch/aviion/conf/Makefile.aviion10
-rw-r--r--sys/arch/beagle/conf/Makefile.beagle10
-rw-r--r--sys/arch/gumstix/conf/Makefile.gumstix10
-rw-r--r--sys/arch/hp300/conf/Makefile.hp30010
-rw-r--r--sys/arch/hppa/conf/Makefile.hppa10
-rw-r--r--sys/arch/hppa64/conf/Makefile.hppa6410
-rw-r--r--sys/arch/i386/conf/Makefile.i38610
-rw-r--r--sys/arch/landisk/conf/Makefile.landisk10
-rw-r--r--sys/arch/loongson/conf/Makefile.loongson10
-rw-r--r--sys/arch/luna88k/conf/Makefile.luna88k10
-rw-r--r--sys/arch/mac68k/conf/Makefile.mac68k10
-rw-r--r--sys/arch/macppc/conf/Makefile.macppc10
-rw-r--r--sys/arch/mvme68k/conf/Makefile.mvme68k10
-rw-r--r--sys/arch/mvme88k/conf/Makefile.mvme88k10
-rw-r--r--sys/arch/mvmeppc/conf/Makefile.mvmeppc10
-rw-r--r--sys/arch/octeon/conf/Makefile.octeon10
-rw-r--r--sys/arch/palm/conf/Makefile.palm10
-rw-r--r--sys/arch/sgi/conf/Makefile.sgi10
-rw-r--r--sys/arch/socppc/conf/Makefile.socppc10
-rw-r--r--sys/arch/solbourne/conf/Makefile.solbourne10
-rw-r--r--sys/arch/sparc/conf/Makefile.sparc10
-rw-r--r--sys/arch/sparc64/conf/Makefile.sparc6410
-rw-r--r--sys/arch/vax/conf/Makefile.vax10
-rw-r--r--sys/arch/zaurus/conf/Makefile.zaurus10
27 files changed, 135 insertions, 135 deletions
diff --git a/sys/arch/alpha/conf/Makefile.alpha b/sys/arch/alpha/conf/Makefile.alpha
index 9eece6d8614..3f9c1fa25a6 100644
--- a/sys/arch/alpha/conf/Makefile.alpha
+++ b/sys/arch/alpha/conf/Makefile.alpha
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.alpha,v 1.71 2010/12/02 04:35:00 deraadt Exp $
+# $OpenBSD: Makefile.alpha,v 1.72 2010/12/02 20:57:06 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -67,11 +67,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/amd64/conf/Makefile.amd64 b/sys/arch/amd64/conf/Makefile.amd64
index 82b921ff414..027b36d1c05 100644
--- a/sys/arch/amd64/conf/Makefile.amd64
+++ b/sys/arch/amd64/conf/Makefile.amd64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.amd64,v 1.45 2010/12/02 04:35:01 deraadt Exp $
+# $OpenBSD: Makefile.amd64,v 1.46 2010/12/02 20:57:07 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -68,11 +68,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/armish/conf/Makefile.armish b/sys/arch/armish/conf/Makefile.armish
index 1b4bb2e3c54..d9d813be895 100644
--- a/sys/arch/armish/conf/Makefile.armish
+++ b/sys/arch/armish/conf/Makefile.armish
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.armish,v 1.36 2010/12/02 04:35:01 deraadt Exp $
+# $OpenBSD: Makefile.armish,v 1.37 2010/12/02 20:57:07 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -67,16 +67,16 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= ${_mach}_start.o locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= ${_mach}_start.o locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
SYSTEM_LD_HEAD+=; \
cat ${_archdir}/conf/ldscript.head ${_archdir}/conf/ldscript.tail | \
sed -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \
-e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' > ldscript
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
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; \
diff --git a/sys/arch/aviion/conf/Makefile.aviion b/sys/arch/aviion/conf/Makefile.aviion
index bd667629077..052c387f516 100644
--- a/sys/arch/aviion/conf/Makefile.aviion
+++ b/sys/arch/aviion/conf/Makefile.aviion
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.aviion,v 1.31 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.aviion,v 1.32 2010/12/02 20:57:07 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -73,11 +73,11 @@ PROFILE_C= ${CC} -S -c ${CFLAGS} ${CPPFLAGS} $<; \
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/beagle/conf/Makefile.beagle b/sys/arch/beagle/conf/Makefile.beagle
index a55e1ec0925..17f66f6920e 100644
--- a/sys/arch/beagle/conf/Makefile.beagle
+++ b/sys/arch/beagle/conf/Makefile.beagle
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.beagle,v 1.30 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.beagle,v 1.31 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -67,16 +67,16 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= ${_mach}_start.o locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= ${_mach}_start.o locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
SYSTEM_LD_HEAD+=; \
cat ${_archdir}/conf/ldscript.head ${_archdir}/conf/ldscript.tail | \
sed -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \
-e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' > ldscript
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/gumstix/conf/Makefile.gumstix b/sys/arch/gumstix/conf/Makefile.gumstix
index af8621b7783..c9ddc7a6553 100644
--- a/sys/arch/gumstix/conf/Makefile.gumstix
+++ b/sys/arch/gumstix/conf/Makefile.gumstix
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.gumstix,v 1.28 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.gumstix,v 1.29 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -67,16 +67,16 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= ${_mach}_start.o locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= ${_mach}_start.o locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
SYSTEM_LD_HEAD+=; \
cat ${_archdir}/conf/ldscript.head ${_archdir}/conf/ldscript.tail | \
sed -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \
-e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' > ldscript
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/hp300/conf/Makefile.hp300 b/sys/arch/hp300/conf/Makefile.hp300
index 9f2928d78ab..35070e2bb41 100644
--- a/sys/arch/hp300/conf/Makefile.hp300
+++ b/sys/arch/hp300/conf/Makefile.hp300
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.hp300,v 1.71 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.hp300,v 1.72 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -104,11 +104,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS} ${FPSP}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o ${FPSP}
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/hppa/conf/Makefile.hppa b/sys/arch/hppa/conf/Makefile.hppa
index bbe60256342..626144d4b02 100644
--- a/sys/arch/hppa/conf/Makefile.hppa
+++ b/sys/arch/hppa/conf/Makefile.hppa
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.hppa,v 1.61 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.hppa,v 1.62 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -88,11 +88,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS} ${LIBSPMATH}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o ${LIBSPMATH}
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/hppa64/conf/Makefile.hppa64 b/sys/arch/hppa64/conf/Makefile.hppa64
index 26507a41d9e..abb15ea485c 100644
--- a/sys/arch/hppa64/conf/Makefile.hppa64
+++ b/sys/arch/hppa64/conf/Makefile.hppa64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.hppa64,v 1.34 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.hppa64,v 1.35 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -69,11 +69,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS} ${LIBSPMATH}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o ${LIBSPMATH}
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/i386/conf/Makefile.i386 b/sys/arch/i386/conf/Makefile.i386
index c85f5207953..4304c85c92c 100644
--- a/sys/arch/i386/conf/Makefile.i386
+++ b/sys/arch/i386/conf/Makefile.i386
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.i386,v 1.77 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.i386,v 1.78 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -73,11 +73,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/landisk/conf/Makefile.landisk b/sys/arch/landisk/conf/Makefile.landisk
index f20ac008ece..daf8c7f500f 100644
--- a/sys/arch/landisk/conf/Makefile.landisk
+++ b/sys/arch/landisk/conf/Makefile.landisk
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.landisk,v 1.38 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.landisk,v 1.39 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -67,11 +67,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/loongson/conf/Makefile.loongson b/sys/arch/loongson/conf/Makefile.loongson
index 2402a741dfb..ffa47448020 100644
--- a/sys/arch/loongson/conf/Makefile.loongson
+++ b/sys/arch/loongson/conf/Makefile.loongson
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.loongson,v 1.27 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.loongson,v 1.28 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -74,11 +74,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/luna88k/conf/Makefile.luna88k b/sys/arch/luna88k/conf/Makefile.luna88k
index 9bf514ae7c5..1d0ff74dcd3 100644
--- a/sys/arch/luna88k/conf/Makefile.luna88k
+++ b/sys/arch/luna88k/conf/Makefile.luna88k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.luna88k,v 1.38 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.luna88k,v 1.39 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -71,11 +71,11 @@ PROFILE_C= ${CC} -S -c ${CFLAGS} ${CPPFLAGS} $<; \
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/mac68k/conf/Makefile.mac68k b/sys/arch/mac68k/conf/Makefile.mac68k
index a9eccbfbaf4..a2c66dd3439 100644
--- a/sys/arch/mac68k/conf/Makefile.mac68k
+++ b/sys/arch/mac68k/conf/Makefile.mac68k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.mac68k,v 1.68 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.mac68k,v 1.69 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -69,11 +69,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS} ${FPSP}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o ${FPSP}
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/macppc/conf/Makefile.macppc b/sys/arch/macppc/conf/Makefile.macppc
index 62c07de5b41..8115060193c 100644
--- a/sys/arch/macppc/conf/Makefile.macppc
+++ b/sys/arch/macppc/conf/Makefile.macppc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.macppc,v 1.57 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.macppc,v 1.58 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -67,11 +67,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/mvme68k/conf/Makefile.mvme68k b/sys/arch/mvme68k/conf/Makefile.mvme68k
index 9fab002401a..89307d1a32b 100644
--- a/sys/arch/mvme68k/conf/Makefile.mvme68k
+++ b/sys/arch/mvme68k/conf/Makefile.mvme68k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.mvme68k,v 1.59 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.mvme68k,v 1.60 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -70,11 +70,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS} ${FPSP} ${060SP}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o ${FPSP} ${060SP}
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/mvme88k/conf/Makefile.mvme88k b/sys/arch/mvme88k/conf/Makefile.mvme88k
index 1bbe653f076..665a05320e5 100644
--- a/sys/arch/mvme88k/conf/Makefile.mvme88k
+++ b/sys/arch/mvme88k/conf/Makefile.mvme88k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.mvme88k,v 1.68 2010/12/02 04:35:02 deraadt Exp $
+# $OpenBSD: Makefile.mvme88k,v 1.69 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -68,11 +68,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
# Kernel is linked as a ZMAGIC executable, with start at 10020
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/mvmeppc/conf/Makefile.mvmeppc b/sys/arch/mvmeppc/conf/Makefile.mvmeppc
index ae9a9fb89f3..8baa2000c9f 100644
--- a/sys/arch/mvmeppc/conf/Makefile.mvmeppc
+++ b/sys/arch/mvmeppc/conf/Makefile.mvmeppc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.mvmeppc,v 1.54 2010/12/02 04:35:03 deraadt Exp $
+# $OpenBSD: Makefile.mvmeppc,v 1.55 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -67,11 +67,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/octeon/conf/Makefile.octeon b/sys/arch/octeon/conf/Makefile.octeon
index 5634a900536..07eefff01e8 100644
--- a/sys/arch/octeon/conf/Makefile.octeon
+++ b/sys/arch/octeon/conf/Makefile.octeon
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.octeon,v 1.2 2010/12/02 04:35:03 deraadt Exp $
+# $OpenBSD: Makefile.octeon,v 1.3 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -75,11 +75,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/palm/conf/Makefile.palm b/sys/arch/palm/conf/Makefile.palm
index 3f83a7843e0..83e12f64ea1 100644
--- a/sys/arch/palm/conf/Makefile.palm
+++ b/sys/arch/palm/conf/Makefile.palm
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.palm,v 1.25 2010/12/02 04:35:03 deraadt Exp $
+# $OpenBSD: Makefile.palm,v 1.26 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -67,16 +67,16 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= ${_mach}_start.o locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= ${_mach}_start.o locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
SYSTEM_LD_HEAD+=; \
cat ${_archdir}/conf/ldscript.head ${_archdir}/conf/ldscript.tail | \
sed -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \
-e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' > ldscript
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/sgi/conf/Makefile.sgi b/sys/arch/sgi/conf/Makefile.sgi
index 27b8b4dd86b..93cb808519b 100644
--- a/sys/arch/sgi/conf/Makefile.sgi
+++ b/sys/arch/sgi/conf/Makefile.sgi
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sgi,v 1.49 2010/12/02 04:35:03 deraadt Exp $
+# $OpenBSD: Makefile.sgi,v 1.50 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -74,11 +74,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/socppc/conf/Makefile.socppc b/sys/arch/socppc/conf/Makefile.socppc
index eec783e57a4..f91f324acda 100644
--- a/sys/arch/socppc/conf/Makefile.socppc
+++ b/sys/arch/socppc/conf/Makefile.socppc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.socppc,v 1.28 2010/12/02 04:35:03 deraadt Exp $
+# $OpenBSD: Makefile.socppc,v 1.29 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -67,11 +67,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/solbourne/conf/Makefile.solbourne b/sys/arch/solbourne/conf/Makefile.solbourne
index a4186e0a2f4..ff0b14ed9a5 100644
--- a/sys/arch/solbourne/conf/Makefile.solbourne
+++ b/sys/arch/solbourne/conf/Makefile.solbourne
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.solbourne,v 1.31 2010/12/02 04:35:03 deraadt Exp $
+# $OpenBSD: Makefile.solbourne,v 1.32 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -67,11 +67,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/sparc/conf/Makefile.sparc b/sys/arch/sparc/conf/Makefile.sparc
index 1a7ce9ceadb..b440048e17e 100644
--- a/sys/arch/sparc/conf/Makefile.sparc
+++ b/sys/arch/sparc/conf/Makefile.sparc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sparc,v 1.67 2010/12/02 04:35:03 deraadt Exp $
+# $OpenBSD: Makefile.sparc,v 1.68 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -70,11 +70,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/sparc64/conf/Makefile.sparc64 b/sys/arch/sparc64/conf/Makefile.sparc64
index 73e0ebcfed6..677cc3a6ab9 100644
--- a/sys/arch/sparc64/conf/Makefile.sparc64
+++ b/sys/arch/sparc64/conf/Makefile.sparc64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sparc64,v 1.54 2010/12/02 04:35:03 deraadt Exp $
+# $OpenBSD: Makefile.sparc64,v 1.55 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -67,11 +67,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/vax/conf/Makefile.vax b/sys/arch/vax/conf/Makefile.vax
index d4d5f8db515..0e24413dcb0 100644
--- a/sys/arch/vax/conf/Makefile.vax
+++ b/sys/arch/vax/conf/Makefile.vax
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.vax,v 1.59 2010/12/02 04:35:03 deraadt Exp $
+# $OpenBSD: Makefile.vax,v 1.60 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -67,11 +67,11 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=
diff --git a/sys/arch/zaurus/conf/Makefile.zaurus b/sys/arch/zaurus/conf/Makefile.zaurus
index eb2f909a761..375844077d8 100644
--- a/sys/arch/zaurus/conf/Makefile.zaurus
+++ b/sys/arch/zaurus/conf/Makefile.zaurus
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.zaurus,v 1.38 2010/12/02 04:35:03 deraadt Exp $
+# $OpenBSD: Makefile.zaurus,v 1.39 2010/12/02 20:57:08 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -67,16 +67,16 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD_HEAD}
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
-SYSTEM_OBJ= ${_mach}_start.o locore.o param.o ioconf.o vers.o ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
+SYSTEM_HEAD= ${_mach}_start.o locore.o param.o ioconf.o
+SYSTEM_DEP= Makefile ${SYSTEM_HEAD} ${OBJS}
SYSTEM_LD_HEAD= @rm -f $@
SYSTEM_LD_HEAD+=; \
cat ${_archdir}/conf/ldscript.head ${_archdir}/conf/ldscript.tail | \
sed -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \
-e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' > ldscript
-SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}'; \
- ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ}
+SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
+ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS}
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
DEBUG?=