summaryrefslogtreecommitdiff
path: root/sys/arch/luna88k
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-06-05 12:44:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-06-05 12:44:00 +0000
commit2dfa61178f13fdb1920a28907e3ecc76bbf87920 (patch)
tree470e56992f5bbda0724a6d60c7e2f4280a10e515 /sys/arch/luna88k
parent33b937a3e33fda45ea1d235733d5e56807d8938c (diff)
The arm* architectures edit the ld.script, creating a copy in the compile
directories. Copy it in the same way on other architectures, for the same effect. Something upcoming will want that file there anyways.
Diffstat (limited to 'sys/arch/luna88k')
-rw-r--r--sys/arch/luna88k/conf/Makefile.luna88k10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/luna88k/conf/Makefile.luna88k b/sys/arch/luna88k/conf/Makefile.luna88k
index 5b2e5be82bc..1252f8fd4d6 100644
--- a/sys/arch/luna88k/conf/Makefile.luna88k
+++ b/sys/arch/luna88k/conf/Makefile.luna88k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.luna88k,v 1.67 2017/06/03 22:21:33 deraadt Exp $
+# $OpenBSD: Makefile.luna88k,v 1.68 2017/06/05 12:43:59 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -39,8 +39,7 @@ DEBUG?= -g
COPTS?= -O2
CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
-LDSCRIPT= ${_machdir}/conf/ld.script
-LINKFLAGS= -T ${LDSCRIPT} -Ttext 0x80000 -e __start -X -N --warn-common -nopie
+LINKFLAGS= -T ld.script -Ttext 0x80000 -e __start -X -N --warn-common -nopie
.if ${IDENT:M-DDDB_STRUCT}
DB_STRUCTINFO= db_structinfo.h
@@ -74,7 +73,7 @@ PROFILE_C= ${CC} -S -c ${CFLAGS} ${CPPFLAGS} $<; \
# ${SYSTEM_LD_TAIL}
SYSTEM_HEAD= locore.o param.o ioconf.o
SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS}
-SYSTEM_DEP= Makefile ${SYSTEM_OBJ} ${LDSCRIPT}
+SYSTEM_DEP= Makefile ${SYSTEM_OBJ} ld.script
SYSTEM_LD_HEAD= @rm -f $@
SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \
umask 007; \
@@ -118,6 +117,9 @@ mcount.o: $S/lib/libkern/mcount.c Makefile
ioconf.o: ioconf.c
${NORMAL_C}
+ld.script: ${_machdir}/conf/ld.script
+ cp ${_machdir}/conf/ld.script $@
+
vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c