diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-09-10 04:21:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-09-10 04:21:55 +0100 |
commit | 677b7ba5c317778df2ad7e70df94b9b7eec4adbc (patch) | |
tree | 6c418a1546fff5becab5d8b9ed6803323e7f316e /dev-util/plan9port/files/plan9port-noexecstack.patch | |
parent | fbda87924e6faa7a1919f1a2b4182490bde5ec5c (diff) |
gentoo resync : 10.09.2021
Diffstat (limited to 'dev-util/plan9port/files/plan9port-noexecstack.patch')
-rw-r--r-- | dev-util/plan9port/files/plan9port-noexecstack.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/dev-util/plan9port/files/plan9port-noexecstack.patch b/dev-util/plan9port/files/plan9port-noexecstack.patch index aff60d07a989..20aecce2515a 100644 --- a/dev-util/plan9port/files/plan9port-noexecstack.patch +++ b/dev-util/plan9port/files/plan9port-noexecstack.patch @@ -3,44 +3,9 @@ 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. -The plan9port 9a wrapper wrapper needs to be modified to pass flags to the -underlying assembler first though.. - Patch by Andy Spencer http://code.swtch.com/plan9port/issue/76/ ---- a/bin/9a -+++ b/bin/9a -@@ -1,10 +1,5 @@ - #!/bin/sh - --if [ $# != 1 ]; then -- echo 'usage: 9a file.s' 1>&2 -- exit 1 --fi -- - test -f $PLAN9/config && . $PLAN9/config - - aflags="" -@@ -17,5 +12,16 @@ - ;; - esac - --out=`echo $1 | sed 's/\.s$//;s/$/.o/'` --exec as $aflags -o $out $1 -+for arg; do -+ case $arg in -+ -*) -+ opts="$opts $arg" -+ ;; -+ *.s) -+ src=$arg -+ dst=$(echo $arg | sed 's/\.s/\.o/') -+ ;; -+ esac -+done -+ -+exec as $aflags $opts -o $dst $src --- a/src/mkhdr +++ b/src/mkhdr @@ -13,7 +13,7 @@ |