summaryrefslogtreecommitdiff
path: root/usr.sbin
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 /usr.sbin
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@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/crunchgen/crunchgen.c4
1 files changed, 2 insertions, 2 deletions
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");