summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--distrib/special/Makefile.inc3
-rw-r--r--usr.sbin/crunchgen/crunchgen.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/distrib/special/Makefile.inc b/distrib/special/Makefile.inc
index 733d4964d8b..bc3c3ab6a96 100644
--- a/distrib/special/Makefile.inc
+++ b/distrib/special/Makefile.inc
@@ -1,6 +1,7 @@
# options for all the directories below
-COPTS+=-Oz -fno-stack-protector -fno-unwind-tables
+COPTS+=-Oz -fno-stack-protector
+COPTS+=-fno-unwind-tables -fno-asynchronous-unwind-tables
MAN=
LDSTATIC=-static
NOPIE=
diff --git a/usr.sbin/crunchgen/crunchgen.c b/usr.sbin/crunchgen/crunchgen.c
index 3b312b342b2..acf2d40cd88 100644
--- a/usr.sbin/crunchgen/crunchgen.c
+++ b/usr.sbin/crunchgen/crunchgen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crunchgen.c,v 1.22 2021/02/13 18:52:08 semarie Exp $ */
+/* $OpenBSD: crunchgen.c,v 1.23 2021/03/10 22:52:28 jsg Exp $ */
/*
* Copyright (c) 1994 University of Maryland
@@ -897,6 +897,7 @@ top_makefile_rules(FILE * outmk)
fprintf(outmk, "CFLAGS+=-Oz\n");
fprintf(outmk, "CFLAGS+=-fno-stack-protector\n");
fprintf(outmk, "CFLAGS+=-fno-unwind-tables\n");
+ fprintf(outmk, "CFLAGS+=-fno-asynchronous-unwind-tables\n");
fprintf(outmk, "LDFLAGS+=$(NOPIE_LDFLAGS)\n");
fprintf(outmk, "STRIP?=strip\n");
fprintf(outmk, "LINK=$(LD) -dc -r ${LDFLAGS}\n");