Due to growth we can't allow -fret-clean behaviour in distrib/special,
authorderaadt <deraadt@openbsd.org>
Sun, 2 Jun 2024 15:54:03 +0000 (15:54 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 2 Jun 2024 15:54:03 +0000 (15:54 +0000)
so use COPTS+=-fno-ret-clean

distrib/special/Makefile.inc

index 99547e8..8383557 100644 (file)
@@ -4,7 +4,7 @@ COPTS+=-Oz -fno-stack-protector
 COPTS+=-fno-unwind-tables -fno-asynchronous-unwind-tables
 
 .if ${MACHINE} == "amd64"
-COPTS+=-fcf-protection=none
+COPTS+=-fcf-protection=none -fno-ret-clean
 .endif
 .if ${MACHINE} == "arm64"
 COPTS+=-mbranch-protection=none