summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Marie <semarie@cvs.openbsd.org>2021-02-13 18:52:09 +0000
committerSebastien Marie <semarie@cvs.openbsd.org>2021-02-13 18:52:09 +0000
commit065f3ec595943e7f6d9ac8d0f70cf129c7b5fbec (patch)
tree11732f49031aaee02a99126d26313bb53a7a3579
parent40b7edf159b3e0c0cb600af0521513ec5390bb11 (diff)
distrib: remove .comment section systematically
remove this section as part of crunchgen generated commands. it avoids calling "strip -R .comment" for some but not all architectures. ok deraadt@ danj@
-rw-r--r--distrib/amd64/ramdiskA/Makefile3
-rw-r--r--distrib/amd64/ramdisk_cd/Makefile3
-rw-r--r--distrib/i386/ramdisk/Makefile3
-rw-r--r--distrib/i386/ramdisk_cd/Makefile3
-rw-r--r--usr.sbin/crunchgen/crunchgen.c4
5 files changed, 6 insertions, 10 deletions
diff --git a/distrib/amd64/ramdiskA/Makefile b/distrib/amd64/ramdiskA/Makefile
index deb5306ad38..c8e3da8bd60 100644
--- a/distrib/amd64/ramdiskA/Makefile
+++ b/distrib/amd64/ramdiskA/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.13 2021/02/13 18:48:23 semarie Exp $
+# $OpenBSD: Makefile,v 1.14 2021/02/13 18:52:08 semarie Exp $
FS= floppy${OSrev}.img
FSSIZE= 2880
@@ -61,7 +61,6 @@ instbin.mk instbin.cache instbin.c: instbin.conf
instbin: instbin.mk instbin.cache instbin.c
${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all
- strip -R .comment instbin
instbin.conf: ${LISTS}
awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf
diff --git a/distrib/amd64/ramdisk_cd/Makefile b/distrib/amd64/ramdisk_cd/Makefile
index e3319770277..ba206c042f3 100644
--- a/distrib/amd64/ramdisk_cd/Makefile
+++ b/distrib/amd64/ramdisk_cd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.27 2021/02/13 18:48:23 semarie Exp $
+# $OpenBSD: Makefile,v 1.28 2021/02/13 18:52:08 semarie Exp $
FS= miniroot${OSrev}.img
FSSIZE= 9920
@@ -84,7 +84,6 @@ instbin.mk instbin.cache instbin.c: instbin.conf
instbin: instbin.mk instbin.cache instbin.c
${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all
- strip -R .comment instbin
instbin.conf: ${LISTS}
awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf
diff --git a/distrib/i386/ramdisk/Makefile b/distrib/i386/ramdisk/Makefile
index 4fe1111d5d7..688f317fa7a 100644
--- a/distrib/i386/ramdisk/Makefile
+++ b/distrib/i386/ramdisk/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.12 2021/02/13 18:48:23 semarie Exp $
+# $OpenBSD: Makefile,v 1.13 2021/02/13 18:52:08 semarie Exp $
FS= floppy${OSrev}.img
FSSIZE= 2880
@@ -62,7 +62,6 @@ instbin.mk instbin.cache instbin.c: instbin.conf
instbin: instbin.mk instbin.cache instbin.c
${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all
- strip -R .comment instbin
instbin.conf: ${LISTS}
awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf
diff --git a/distrib/i386/ramdisk_cd/Makefile b/distrib/i386/ramdisk_cd/Makefile
index b8c93be81e3..81178b58cdd 100644
--- a/distrib/i386/ramdisk_cd/Makefile
+++ b/distrib/i386/ramdisk_cd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.21 2021/02/13 18:48:23 semarie Exp $
+# $OpenBSD: Makefile,v 1.22 2021/02/13 18:52:08 semarie Exp $
FS= miniroot${OSrev}.img
FSSIZE= 8064
@@ -81,7 +81,6 @@ instbin.mk instbin.cache instbin.c: instbin.conf
instbin: instbin.mk instbin.cache instbin.c
${MAKE} -f instbin.mk SRCLIBDIR=${.CURDIR}/../../../lib all
- strip -R .comment instbin
instbin.conf: ${LISTS}
awk -f ${UTILS}/makeconf.awk ${LISTS} > instbin.conf
diff --git a/usr.sbin/crunchgen/crunchgen.c b/usr.sbin/crunchgen/crunchgen.c
index 48b5f06784c..3b312b342b2 100644
--- a/usr.sbin/crunchgen/crunchgen.c
+++ b/usr.sbin/crunchgen/crunchgen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crunchgen.c,v 1.21 2018/10/18 14:25:14 naddy Exp $ */
+/* $OpenBSD: crunchgen.c,v 1.22 2021/02/13 18:52:08 semarie Exp $ */
/*
* Copyright (c) 1994 University of Maryland
@@ -928,7 +928,7 @@ top_makefile_rules(FILE * outmk)
execfname, execfname);
fprintf(outmk, "\t$(CC) -static -L. ${LDFLAGS} -o $@ %s.o $(CRUNCHED_OBJS) $(LIBS)\n",
execfname);
- fprintf(outmk, "\t$(STRIP) %s\n", execfname);
+ fprintf(outmk, "\t$(STRIP) -R .comment %s\n", execfname);
fprintf(outmk, "\n");
fprintf(outmk, ".if !empty(CLIB)\n");