diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/alpha/conf/Makefile.alpha | 7 | ||||
-rw-r--r-- | sys/arch/amd64/conf/Makefile.amd64 | 13 | ||||
-rw-r--r-- | sys/arch/arm64/conf/Makefile.arm64 | 10 | ||||
-rw-r--r-- | sys/arch/armv7/conf/Makefile.armv7 | 10 | ||||
-rw-r--r-- | sys/arch/hppa/conf/Makefile.hppa | 9 | ||||
-rw-r--r-- | sys/arch/i386/conf/Makefile.i386 | 13 | ||||
-rw-r--r-- | sys/arch/landisk/conf/Makefile.landisk | 9 | ||||
-rw-r--r-- | sys/arch/loongson/conf/Makefile.loongson | 9 | ||||
-rw-r--r-- | sys/arch/luna88k/conf/Makefile.luna88k | 9 | ||||
-rw-r--r-- | sys/arch/macppc/conf/Makefile.macppc | 9 | ||||
-rw-r--r-- | sys/arch/octeon/conf/Makefile.octeon | 9 | ||||
-rw-r--r-- | sys/arch/sgi/conf/Makefile.sgi | 9 | ||||
-rw-r--r-- | sys/arch/socppc/conf/Makefile.socppc | 9 | ||||
-rw-r--r-- | sys/arch/sparc64/conf/Makefile.sparc64 | 9 |
14 files changed, 73 insertions, 61 deletions
diff --git a/sys/arch/alpha/conf/Makefile.alpha b/sys/arch/alpha/conf/Makefile.alpha index c12d317f149..847f52326aa 100644 --- a/sys/arch/alpha/conf/Makefile.alpha +++ b/sys/arch/alpha/conf/Makefile.alpha @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.alpha,v 1.95 2016/11/29 09:08:34 mpi Exp $ +# $OpenBSD: Makefile.alpha,v 1.96 2017/06/03 22:21:33 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -73,12 +73,13 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} SYSTEM_DEP= Makefile ${SYSTEM_OBJ} ${LDSCRIPT} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ + umask 007; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" STRIPFLAGS= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb diff --git a/sys/arch/amd64/conf/Makefile.amd64 b/sys/arch/amd64/conf/Makefile.amd64 index 8e122ece942..cc74af32faa 100644 --- a/sys/arch/amd64/conf/Makefile.amd64 +++ b/sys/arch/amd64/conf/Makefile.amd64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.amd64,v 1.77 2017/05/31 19:18:18 deraadt Exp $ +# $OpenBSD: Makefile.amd64,v 1.78 2017/06/03 22:21:33 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -80,13 +80,14 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} param.o ioconf.o SYSTEM_DEP= Makefile ${SYSTEM_OBJ} ${LDSCRIPT} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ + umask 007; \ echo ${OBJS} param.o ioconf.o vers.o | tr " " "\n" | ${SORTR} > lorder; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} `cat lorder` -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" STRIPFLAGS= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb @@ -126,10 +127,10 @@ vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP} ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c gap.S: ${SYSTEM_SWAP_DEP} Makefile - sh $S/conf/makegap.sh 0xcc > gap.S + umask 077; sh $S/conf/makegap.sh 0xcc > gap.S gap.o: gap.S - ${CC} ${AFLAGS} ${CPPFLAGS} ${PROF} -c gap.S + umask 077; ${CC} ${AFLAGS} ${CPPFLAGS} ${PROF} -c gap.S clean: rm -f *bsd *bsd.gdb *.[dio] [a-z]*.s assym.* ${DB_STRUCTINFO} \ @@ -156,7 +157,7 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: cmp -s bsd /bsd || ln -f /bsd /obsd - cp bsd /nbsd + cp -p bsd /nbsd mv /nbsd /bsd .endif diff --git a/sys/arch/arm64/conf/Makefile.arm64 b/sys/arch/arm64/conf/Makefile.arm64 index 5239c8389e6..ae0251b0b54 100644 --- a/sys/arch/arm64/conf/Makefile.arm64 +++ b/sys/arch/arm64/conf/Makefile.arm64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.arm64,v 1.5 2017/02/05 13:28:05 jsg Exp $ +# $OpenBSD: Makefile.arm64,v 1.6 2017/06/03 22:21:33 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -76,14 +76,14 @@ SYSTEM_LD_HEAD+=; \ cat ${_archdir}/conf/kern.ldscript | \ 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_HEAD} vers.o $${OBJS}'; \ + umask 007; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" STRIPFLAGS= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb @@ -146,7 +146,7 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: cmp -s bsd /bsd || ln -f /bsd /obsd - cp bsd /nbsd + cp -p bsd /nbsd mv /nbsd /bsd .endif diff --git a/sys/arch/armv7/conf/Makefile.armv7 b/sys/arch/armv7/conf/Makefile.armv7 index e6fafd12baa..d0bb28bd5c7 100644 --- a/sys/arch/armv7/conf/Makefile.armv7 +++ b/sys/arch/armv7/conf/Makefile.armv7 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.armv7,v 1.21 2017/01/25 11:15:07 kettenis Exp $ +# $OpenBSD: Makefile.armv7,v 1.22 2017/06/03 22:21:33 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -74,14 +74,14 @@ SYSTEM_LD_HEAD+=; \ sed -e 's/@KERNEL_BASE_PHYS@/0/' \ -e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' \ -e 's/(KERNEL_BASE_phys)/(KERNEL_BASE_virt)/' > ldscript - SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ + umask 007; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" STRIPFLAGS= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb @@ -146,7 +146,7 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: cmp -s bsd /bsd || ln -f /bsd /obsd - cp bsd /nbsd + cp -p bsd /nbsd mv /nbsd /bsd .endif diff --git a/sys/arch/hppa/conf/Makefile.hppa b/sys/arch/hppa/conf/Makefile.hppa index 6c87c245fa6..11c91ae2971 100644 --- a/sys/arch/hppa/conf/Makefile.hppa +++ b/sys/arch/hppa/conf/Makefile.hppa @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.hppa,v 1.89 2017/02/27 16:21:30 kettenis Exp $ +# $OpenBSD: Makefile.hppa,v 1.90 2017/06/03 22:21:33 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -81,12 +81,13 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} SYSTEM_DEP= Makefile ${SYSTEM_OBJ} ${LDSCRIPT} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ + umask 007; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" STRIPFLAGS= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb @@ -148,7 +149,7 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: cmp -s bsd /bsd || ln -f /bsd /obsd - cp bsd /nbsd + cp -p bsd /nbsd mv /nbsd /bsd .endif diff --git a/sys/arch/i386/conf/Makefile.i386 b/sys/arch/i386/conf/Makefile.i386 index 687fdba75a4..f6c4e3e9112 100644 --- a/sys/arch/i386/conf/Makefile.i386 +++ b/sys/arch/i386/conf/Makefile.i386 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.i386,v 1.104 2017/05/31 19:18:18 deraadt Exp $ +# $OpenBSD: Makefile.i386,v 1.105 2017/06/03 22:21:33 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -81,13 +81,14 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} param.o ioconf.o SYSTEM_DEP= Makefile ${SYSTEM_OBJ} ${LDSCRIPT} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ + umask 007; \ echo ${OBJS} param.o ioconf.o vers.o | tr " " "\n" | ${SORTR} > lorder; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} `cat lorder` -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" STRIPFLAGS= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb @@ -127,10 +128,10 @@ vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP} ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c gap.S: ${SYSTEM_SWAP_DEP} Makefile - sh $S/conf/makegap.sh 0xcc > gap.S + umask 077; sh $S/conf/makegap.sh 0xcc > gap.S gap.o: gap.S - ${CC} ${AFLAGS} ${CPPFLAGS} ${PROF} -c gap.S + umask 077; ${CC} ${AFLAGS} ${CPPFLAGS} ${PROF} -c gap.S clean: rm -f *bsd *bsd.gdb *.[dio] [a-z]*.s assym.* ${DB_STRUCTINFO} \ @@ -157,7 +158,7 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: cmp -s bsd /bsd || ln -f /bsd /obsd - cp bsd /nbsd + cp -p bsd /nbsd mv /nbsd /bsd .endif diff --git a/sys/arch/landisk/conf/Makefile.landisk b/sys/arch/landisk/conf/Makefile.landisk index 2d19089fd4e..411c9034ea2 100644 --- a/sys/arch/landisk/conf/Makefile.landisk +++ b/sys/arch/landisk/conf/Makefile.landisk @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.landisk,v 1.61 2016/11/29 09:08:34 mpi Exp $ +# $OpenBSD: Makefile.landisk,v 1.62 2017/06/03 22:21:33 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -72,12 +72,13 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} SYSTEM_DEP= Makefile ${SYSTEM_OBJ} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ + umask 007; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" STRIPFLAGS= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb @@ -139,7 +140,7 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: cmp -s bsd /bsd || ln -f /bsd /obsd - cp bsd /nbsd + cp -p bsd /nbsd mv /nbsd /bsd .endif diff --git a/sys/arch/loongson/conf/Makefile.loongson b/sys/arch/loongson/conf/Makefile.loongson index 5091dfc315a..6c38fd94abb 100644 --- a/sys/arch/loongson/conf/Makefile.loongson +++ b/sys/arch/loongson/conf/Makefile.loongson @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.loongson,v 1.54 2017/03/18 17:31:31 visa Exp $ +# $OpenBSD: Makefile.loongson,v 1.55 2017/06/03 22:21:33 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -78,12 +78,13 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} SYSTEM_DEP= Makefile ${SYSTEM_OBJ} ${LDSCRIPT} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ + umask 007; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" STRIPFLAGS= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb @@ -151,7 +152,7 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: cmp -s bsd /bsd || ln -f /bsd /obsd - cp bsd /nbsd + cp -p bsd /nbsd mv /nbsd /bsd .endif diff --git a/sys/arch/luna88k/conf/Makefile.luna88k b/sys/arch/luna88k/conf/Makefile.luna88k index 3e1a07fc92f..5b2e5be82bc 100644 --- a/sys/arch/luna88k/conf/Makefile.luna88k +++ b/sys/arch/luna88k/conf/Makefile.luna88k @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.luna88k,v 1.66 2016/11/29 09:08:34 mpi Exp $ +# $OpenBSD: Makefile.luna88k,v 1.67 2017/06/03 22:21:33 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -77,12 +77,13 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} SYSTEM_DEP= Makefile ${SYSTEM_OBJ} ${LDSCRIPT} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ + umask 007; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" STRIPFLAGS= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb @@ -144,7 +145,7 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: cmp -s bsd /bsd || ln -f /bsd /obsd - cp bsd /nbsd + cp -p bsd /nbsd mv /nbsd /bsd .endif diff --git a/sys/arch/macppc/conf/Makefile.macppc b/sys/arch/macppc/conf/Makefile.macppc index 2aba79b6c60..957f935fbce 100644 --- a/sys/arch/macppc/conf/Makefile.macppc +++ b/sys/arch/macppc/conf/Makefile.macppc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.macppc,v 1.79 2016/11/29 09:08:34 mpi Exp $ +# $OpenBSD: Makefile.macppc,v 1.80 2017/06/03 22:21:33 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -72,12 +72,13 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} SYSTEM_DEP= Makefile ${SYSTEM_OBJ} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ + umask 007; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" STRIPFLAGS= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb @@ -139,7 +140,7 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: cmp -s bsd /bsd || ln -f /bsd /obsd - cp bsd /nbsd + cp -p bsd /nbsd mv /nbsd /bsd .endif diff --git a/sys/arch/octeon/conf/Makefile.octeon b/sys/arch/octeon/conf/Makefile.octeon index 29bcc8899de..8934b2ff55e 100644 --- a/sys/arch/octeon/conf/Makefile.octeon +++ b/sys/arch/octeon/conf/Makefile.octeon @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.octeon,v 1.30 2017/03/18 17:31:31 visa Exp $ +# $OpenBSD: Makefile.octeon,v 1.31 2017/06/03 22:21:33 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -79,12 +79,13 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} SYSTEM_DEP= Makefile ${SYSTEM_OBJ} ${LDSCRIPT} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ + umask 007; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" LINKFLAGS+= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb @@ -152,7 +153,7 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: cmp -s bsd /bsd || ln -f /bsd /obsd - cp bsd /nbsd + cp -p bsd /nbsd mv /nbsd /bsd .endif diff --git a/sys/arch/sgi/conf/Makefile.sgi b/sys/arch/sgi/conf/Makefile.sgi index 93e82bf2447..5832d04ed5a 100644 --- a/sys/arch/sgi/conf/Makefile.sgi +++ b/sys/arch/sgi/conf/Makefile.sgi @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sgi,v 1.78 2017/03/18 17:31:31 visa Exp $ +# $OpenBSD: Makefile.sgi,v 1.79 2017/06/03 22:21:33 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -78,12 +78,13 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} SYSTEM_DEP= Makefile ${SYSTEM_OBJ} ${LDSCRIPT} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ + umask 007; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" STRIPFLAGS= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb @@ -151,7 +152,7 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: cmp -s bsd /bsd || ln -f /bsd /obsd - cp bsd /nbsd + cp -p bsd /nbsd mv /nbsd /bsd .endif diff --git a/sys/arch/socppc/conf/Makefile.socppc b/sys/arch/socppc/conf/Makefile.socppc index 9760181b023..23b886ed680 100644 --- a/sys/arch/socppc/conf/Makefile.socppc +++ b/sys/arch/socppc/conf/Makefile.socppc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.socppc,v 1.50 2016/11/29 09:08:34 mpi Exp $ +# $OpenBSD: Makefile.socppc,v 1.51 2017/06/03 22:21:34 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -72,12 +72,13 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} SYSTEM_DEP= Makefile ${SYSTEM_OBJ} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ + umask 007; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" STRIPFLAGS= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb @@ -139,7 +140,7 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: cmp -s bsd /bsd || ln -f /bsd /obsd - cp bsd /nbsd + cp -p bsd /nbsd mv /nbsd /bsd .endif diff --git a/sys/arch/sparc64/conf/Makefile.sparc64 b/sys/arch/sparc64/conf/Makefile.sparc64 index 28ffda763f2..06bec23968a 100644 --- a/sys/arch/sparc64/conf/Makefile.sparc64 +++ b/sys/arch/sparc64/conf/Makefile.sparc64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sparc64,v 1.81 2017/04/15 18:58:45 kettenis Exp $ +# $OpenBSD: Makefile.sparc64,v 1.82 2017/06/03 22:21:34 deraadt Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -71,12 +71,13 @@ SYSTEM_OBJ= ${SYSTEM_HEAD} ${OBJS} SYSTEM_DEP= Makefile ${SYSTEM_OBJ} ${LDSCRIPT} SYSTEM_LD_HEAD= @rm -f $@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ + umask 007; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} -SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ +SYSTEM_LD_TAIL= @${SIZE} $@ .if ${DEBUG} == "-g" STRIPFLAGS= -S -SYSTEM_LD_TAIL+=; \ +SYSTEM_LD_TAIL+=; umask 007; \ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb @@ -138,7 +139,7 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: cmp -s bsd /bsd || ln -f /bsd /obsd - cp bsd /nbsd + cp -p bsd /nbsd mv /nbsd /bsd .endif |