[commit: ghc] master: Gentoo's scanelf program found executable stack in many resulting binaries: (607537a)

Ian Lynagh igloo at earth.li
Sat Sep 17 13:29:21 CEST 2011


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/607537a8424f580c134d6cf88cf902a81589c41f

>---------------------------------------------------------------

commit 607537a8424f580c134d6cf88cf902a81589c41f
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date:   Sat Sep 17 11:29:44 2011 +0100

    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 at 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..ca7ae36 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,"", at progbits
+#endif





More information about the Cvs-ghc mailing list