summaryrefslogtreecommitdiff
path: root/dev-util/plan9port/files/plan9port-noexecstack.patch
blob: 20aecce2515a36abfeef39043a81f3187eac5c9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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