Gentoo Archives: gentoo-dev

From: lnxg33k <lnxg33k@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Need help fixing executable stack
Date: Fri, 06 Jan 2006 22:14:01
Message-Id: 43BEEADE.7000802@gmail.com
In Reply to: [gentoo-dev] Need help fixing executable stack by Thomas Cort
1 Thomas Cort wrote:
2 > When emerging wxGTK-2.4.2-r4 on alpha I get a QA message about
3 > executable stacks ( http://bugs.gentoo.org/113119#c10 ). I read the
4 > GNU Stack Quickstart (
5 > http://gentoo.org/proj/en/hardened/gnu-stack.xml ). However, I
6 > couldn't find any assembly files for wxGTK (ls -R | grep S$ only
7 > returns NEWS), nor could I find ENABLE_EXECUTE_STACK or TRAMPOLINE in
8 > any source files. Would append-flags -Wa,--noexecstack fix it, and is
9 > it the best fix?
10 >
11 > -Thomas
12 >
13 > Output of scanelf:
14 > # scanelf -qeR .
15 <snip>
16
17 Hi. I was just messing with this regarding games-emu/zsnes (Bug: 117771). In my
18 case, they were .asm files. Perhaps that's the same. Mine was an easy fix;
19 scanelf reported !WX errors. RWX seems to imply, from what I've read on the
20 gnu-stack guide, is that actual coding needs to take place. Just like the guide
21 says, --noexecstack will "fix" the issue, but it's really a work around. I'd
22 suggest posting a bug and let someone with assembly experience take it from
23 there; unless of course you can patch it yourself. Pretty much regurgitating
24 what was in the guide, but fixing the problem in the code is the "best fix".
25
26 Btw, nice email addy ;)
27
28 --
29 gentoo-dev@g.o mailing list