src_prepare-overlay/dev-util/plan9port/files/plan9port-noexecstack.patch
Maciej Barć 2aebb15ce9
dev-util/plan9port: add version 2021.03.21 and 2021.10.05
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Maciej Barć <xgqt@riseup.net>
2021-10-13 13:53:24 +02:00

20 lines
384 B
Diff

Remove unneeded executable stack
Assembly routines in libthread and libmp use an executable stack by
default. This is not needed and can be removed using --noexecstack.
Patch by Andy Spencer
http://code.swtch.com/plan9port/issue/76/
--- a/src/mkhdr
+++ b/src/mkhdr
@@ -13,7 +13,7 @@
AR=9ar
CFLAGS=
LDFLAGS=
-AFLAGS=
+AFLAGS=--noexecstack
CLEANFILES=
NUKEFILES=
YACC=9 yacc