Due to growth, crunchgen must also try to block -fret-clean, so also use
authorderaadt <deraadt@openbsd.org>
Sun, 2 Jun 2024 15:55:36 +0000 (15:55 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 2 Jun 2024 15:55:36 +0000 (15:55 +0000)
COPTS+=-fno-ret-clean

usr.sbin/crunchgen/crunchgen.c

index b5a859b..9666816 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: crunchgen.c,v 1.27 2023/09/14 16:39:00 jca Exp $   */
+/* $OpenBSD: crunchgen.c,v 1.28 2024/06/02 15:55:36 deraadt Exp $       */
 
 /*
  * Copyright (c) 1994 University of Maryland
@@ -897,6 +897,7 @@ top_makefile_rules(FILE * outmk)
        fprintf(outmk, "CFLAGS+=-fno-unwind-tables\n");
        fprintf(outmk, ".if ${MACHINE} == \"amd64\"\n");
        fprintf(outmk, "CFLAGS+=-fcf-protection=none\n");
+       fprintf(outmk, "CFLAGS+=-no-ret-clean\n");
        fprintf(outmk, ".endif\n");
        fprintf(outmk, ".if ${MACHINE} == \"arm64\"\n");
        fprintf(outmk, "CFLAGS+=-mbranch-protection=none\n");