summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2017-08-12 19:41:16 +0000
committerjasper <jasper@openbsd.org>2017-08-12 19:41:16 +0000
commit9c6d5f6ee79ad529094ac2cc78ac418303c5a3c3 (patch)
tree31e93e1afe65cc667d468401cf0e78690c061aa1
parentIn iwm(4), instead of scheduling a task which calls ieee80211_end_scan(), (diff)
downloadwireguard-openbsd-9c6d5f6ee79ad529094ac2cc78ac418303c5a3c3.tar.xz
wireguard-openbsd-9c6d5f6ee79ad529094ac2cc78ac418303c5a3c3.zip
always strip the ctf section from ramdisk kernels
discussed with deraadt@ mpi@ ok deraadt@ kettenis@ mpi@
-rw-r--r--distrib/alpha/bsd.rd/Makefile5
-rw-r--r--distrib/alpha/common/Makefile.inc5
-rw-r--r--distrib/alpha/inst-common/Makefile.inc5
-rw-r--r--distrib/hppa/ramdisk/Makefile5
-rw-r--r--distrib/ramdisk/Makefile5
-rw-r--r--distrib/sparc64/bsd.rd/Makefile5
6 files changed, 18 insertions, 12 deletions
diff --git a/distrib/alpha/bsd.rd/Makefile b/distrib/alpha/bsd.rd/Makefile
index 23ebb201b6d..3e0ea0e950a 100644
--- a/distrib/alpha/bsd.rd/Makefile
+++ b/distrib/alpha/bsd.rd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.25 2017/07/25 13:32:14 robert Exp $
+# $OpenBSD: Makefile,v 1.26 2017/08/12 19:41:16 jasper Exp $
TOP= ${.CURDIR}/..
@@ -6,6 +6,7 @@ TOP= ${.CURDIR}/..
IMAGE= ramdisk${REV}.fs
STRIP?= strip
+STRIPOPTS?= -R .SUNW_ctf
GZIPCMD?= gzip
GZIPFLAGS?= -9fn
@@ -22,7 +23,7 @@ MAKEFSARGS_RD= -o disklabel=${DISKTYPE},minfree=0,density=8192
bsd.rd: bsd.rd_unz
objcopy -Sg -R .comment bsd.rd_unz bsd.strip
- ${STRIP} bsd.strip
+ ${STRIP} ${STRIPOPTS} bsd.strip
${GZIPCMD} -c ${GZIPFLAGS} bsd.strip > bsd.rd
bsd.rd_unz: bsd ${IMAGE} rdsetroot
diff --git a/distrib/alpha/common/Makefile.inc b/distrib/alpha/common/Makefile.inc
index f92e3250cbc..33fa66a0c5f 100644
--- a/distrib/alpha/common/Makefile.inc
+++ b/distrib/alpha/common/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.30 2017/07/25 13:32:14 robert Exp $
+# $OpenBSD: Makefile.inc,v 1.31 2017/08/12 19:41:16 jasper Exp $
TOP= ${.CURDIR}/..
@@ -15,6 +15,7 @@ PID!= echo $$$$
REALIMAGE!= echo /var/tmp/image.${PID}
STRIP?= strip
+STRIPOPTS?= -R .SUNW_ctf
GZIPCMD?= gzip
GZIPFLAGS?= -9fn
INSTALLBOOT?= /usr/mdec/installboot -v
@@ -64,7 +65,7 @@ ${FLOPPY}: bsd.gz
bsd.gz: bsd.rd
objcopy -Sg -R .comment bsd.rd bsd.strip
- ${STRIP} bsd.strip
+ ${STRIP} ${STRIPOPTS} bsd.strip
${GZIPCMD} -c ${GZIPFLAGS} bsd.strip > bsd.gz
bsd.rd: bsd ${IMAGE} rdsetroot
diff --git a/distrib/alpha/inst-common/Makefile.inc b/distrib/alpha/inst-common/Makefile.inc
index 8d40d96fc2e..e6530b292eb 100644
--- a/distrib/alpha/inst-common/Makefile.inc
+++ b/distrib/alpha/inst-common/Makefile.inc
@@ -1,5 +1,5 @@
#
-# $OpenBSD: Makefile.inc,v 1.13 2017/01/27 17:59:09 natano Exp $
+# $OpenBSD: Makefile.inc,v 1.14 2017/08/12 19:41:16 jasper Exp $
#
# TOP is assumed to be defined by Makefile including this one.
@@ -11,6 +11,7 @@ LISTS?= ${.CURDIR}/../common/list
CRUNCHCONF?= ${CBIN}.conf
MTREE= ${UTILS}/mtree.conf
STRIP= strip
+STRIPOPTS?= -R .eh_frame -R .SUNW_ctf
${CRUNCHCONF}: ${LISTS}
awk -f ${UTILS}/makeconf.awk CBIN=${CBIN} ${LISTS} > ${CBIN}.conf
@@ -20,7 +21,7 @@ ${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
${MAKE} -f ${CBIN}.mk SRCLIBDIR=${.CURDIR}/../../../lib all
- ${STRIP} -R .eh_frame ${CBIN}
+ ${STRIP} ${STRIPOPTS} ${CBIN}
clean cleandir:
/bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache \
diff --git a/distrib/hppa/ramdisk/Makefile b/distrib/hppa/ramdisk/Makefile
index 0d3c2ad3594..d4e4c1b2a1c 100644
--- a/distrib/hppa/ramdisk/Makefile
+++ b/distrib/hppa/ramdisk/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.32 2017/06/03 22:25:19 deraadt Exp $
+# $OpenBSD: Makefile,v 1.33 2017/08/12 19:41:16 jasper Exp $
CBIN= instbin
ARCHDIR= ${.CURDIR}/..
@@ -25,6 +25,7 @@ BOOT?= ${DESTDIR}/usr/mdec/boot
CDBOOT?= ${DESTDIR}/usr/mdec/cdboot
STRIP?= strip
+STRIPOPTS?= -R .SUNW_ctf
GZIPCMD?= gzip
GZIPFLAGS?= -9n
@@ -56,7 +57,7 @@ obsd:
bsd.rd: obsd ${IMAGE} rdsetroot
cp obsd bsd.rd
${.OBJDIR}/rdsetroot bsd.rd ${IMAGE}
- @${STRIP} bsd.rd
+ ${STRIP} ${STRIPOPTS} bsd.rd
bsd: bsd.rd
(cat bsd.rd ; dd if=/dev/zero count=1) | ${GZIPCMD} ${GZIPFLAGS} > bsd
diff --git a/distrib/ramdisk/Makefile b/distrib/ramdisk/Makefile
index 58267acdc5b..154890a5758 100644
--- a/distrib/ramdisk/Makefile
+++ b/distrib/ramdisk/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.49 2017/07/25 13:32:14 robert Exp $
+# $OpenBSD: Makefile,v 1.50 2017/08/12 19:41:16 jasper Exp $
REV= ${OSrev}
@@ -26,6 +26,7 @@ CRUNCHGENOPTS?=-E
KERNEL?= RAMDISK
UTILS?= ${.CURDIR}/../miniroot
STRIP?= strip
+STRIPOPTS?= -R .SUNW_ctf
LISTS= ${.CURDIR}/list ${ARCHDIR}/list.local
MTREE= ${UTILS}/mtree.conf
@@ -80,7 +81,7 @@ bsd:
bsd.rd: bsd ${IMAGE} rdsetroot
cp bsd bsd.rd
${.OBJDIR}/rdsetroot bsd.rd ${IMAGE}
- ${STRIP} bsd.rd
+ ${STRIP} ${STRIPOPTS} bsd.rd
bsd.gz: bsd.rd
${GZIPCMD} ${GZIPFLAGS} < bsd.rd > bsd.gz
diff --git a/distrib/sparc64/bsd.rd/Makefile b/distrib/sparc64/bsd.rd/Makefile
index b1d572e9a6f..7cc040aab68 100644
--- a/distrib/sparc64/bsd.rd/Makefile
+++ b/distrib/sparc64/bsd.rd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.32 2017/07/25 13:32:14 robert Exp $
+# $OpenBSD: Makefile,v 1.33 2017/08/12 19:41:16 jasper Exp $
TOP= ${.CURDIR}/..
@@ -9,6 +9,7 @@ LISTS?= ${.CURDIR}/list
UTILS?= ${TOP}/../miniroot
STRIP?= strip
+STRIPOPTS?= -R .SUNW_ctf
GZIPCMD?= gzip
GZIPFLAGS?= -9fn
MTREE= ${UTILS}/mtree.conf
@@ -22,7 +23,7 @@ MAKEFSARGS_RD= -o disklabel=${DISKTYPE},minfree=0,density=4096
bsd.rd: bsd.rd_unz
objcopy -Sg -R .comment bsd.rd_unz bsd.strip
- ${STRIP} bsd.strip
+ ${STRIP} ${STRIPOPTS} bsd.strip
${GZIPCMD} -c ${GZIPFLAGS} bsd.strip > bsd.rd
bsd.rd_unz: bsd ${IMAGE} rdsetroot