diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2011-08-23 18:08:05 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2011-08-23 18:08:05 +0000 |
commit | dfcac729820a1a78043729ad5fd34f68876b0ffd (patch) | |
tree | f3987c46ddcf7a735468be27e4e26f0e50d6a79b /dev-lang/ghc/files | |
parent | Add libtxc_dxtn to portage, bug 65607 (diff) | |
download | gentoo-2-dfcac729820a1a78043729ad5fd34f68876b0ffd.tar.gz gentoo-2-dfcac729820a1a78043729ad5fd34f68876b0ffd.tar.bz2 gentoo-2-dfcac729820a1a78043729ad5fd34f68876b0ffd.zip |
QA: Fixed executable stack in AdjustorAsm.o
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/ghc/files')
-rw-r--r-- | dev-lang/ghc/files/ghc-7.0.4-nxstack.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-lang/ghc/files/ghc-7.0.4-nxstack.patch b/dev-lang/ghc/files/ghc-7.0.4-nxstack.patch new file mode 100644 index 000000000000..791e8defb90a --- /dev/null +++ b/dev-lang/ghc/files/ghc-7.0.4-nxstack.patch @@ -0,0 +1,31 @@ +From 25bf3687361501e711d50a8038f0f8de4a2d2aa3 Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich <slyfox@gentoo.org> +Date: Wed, 10 Aug 2011 11:01:26 +0300 +Subject: [PATCH] Mark stack of 'rts/AdjustorAsm.S' as nonexecutable on linux + +Gentoo's scanelf program found executable stack in many resulting binaries: +* RWX --- --- home/prefix/gentoo/usr/lib/ghc-7.2.1/ghc +* !WX --- --- home/prefix/gentoo/usr/lib/ghc-7.2.1/libHSrts.a:AdjustorAsm.o + +More info can be found here: http://www.gentoo.org/proj/en/hardened/gnu-stack.xml + +Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> +--- + rts/AdjustorAsm.S | 4 ++++ + 1 files changed, 4 insertions(+), 0 deletions(-) + +diff --git a/rts/AdjustorAsm.S b/rts/AdjustorAsm.S +index 75b83f6..8045bfe 100644 +--- a/rts/AdjustorAsm.S ++++ b/rts/AdjustorAsm.S +@@ -192,3 +192,7 @@ adjustorCode: + ret + #endif + ++/* mark stack as nonexecutable */ ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",@progbits ++#endif +-- +1.7.3.4 + |