Build install media with -fno-asynchronous-unwind-tables to further
authorjsg <jsg@openbsd.org>
Wed, 10 Mar 2021 22:52:28 +0000 (22:52 +0000)
committerjsg <jsg@openbsd.org>
Wed, 10 Mar 2021 22:52:28 +0000 (22:52 +0000)
reduce size.  Allows a clang 11 amd64 release to complete without
overflowing the floppy image.

ok kettenis@ deraadt@

distrib/special/Makefile.inc
usr.sbin/crunchgen/crunchgen.c

index 733d496..bc3c3ab 100644 (file)
@@ -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=
index 3b312b3..acf2d40 100644 (file)
@@ -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");