* [gentoo-dev] Need help fixing executable stack
@ 2006-01-06 17:30 Thomas Cort
2006-01-06 22:10 ` lnxg33k
2006-01-06 23:27 ` Mike Frysinger
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Cort @ 2006-01-06 17:30 UTC (permalink / raw
To: gentoo-dev
When emerging wxGTK-2.4.2-r4 on alpha I get a QA message about
executable stacks ( http://bugs.gentoo.org/113119#c10 ). I read the
GNU Stack Quickstart (
http://gentoo.org/proj/en/hardened/gnu-stack.xml ). However, I
couldn't find any assembly files for wxGTK (ls -R | grep S$ only
returns NEWS), nor could I find ENABLE_EXECUTE_STACK or TRAMPOLINE in
any source files. Would append-flags -Wa,--noexecstack fix it, and is
it the best fix?
-Thomas
Output of scanelf:
# scanelf -qeR .
--- --- RWX ./build_gtk/lib/libwx_gtk-2.4.so.0.1.1
--- --- RWX ./build_gtk/lib/libwx_gtk_gl-2.4.so.0.1.1
--- --- RWX ./build_gtk/lib/libwx_gtk_canvas-2.4.so.0.1.1
--- --- RWX ./build_gtk/lib/libwx_gtk_fl-2.4.so.0.1.1
--- --- RWX ./build_gtk/lib/libwx_gtk_gizmos-2.4.so.0.1.1
--- --- RWX ./build_gtk/lib/libwx_gtk_net-2.4.so.0.1.1
--- --- RWX ./build_gtk/lib/libwx_gtk_ogl-2.4.so.0.1.1
--- --- RWX ./build_gtk/lib/libwx_gtk_plot-2.4.so.0.1.1
--- --- RWX ./build_gtk/lib/libwx_gtk_stc-2.4.so.0.1.1
--- --- RWX ./build_gtk/lib/libwx_gtk_dcsvg-2.4.so.0.1.1
--- --- RWX ./build_gtk/lib/libwx_gtk_xrc-2.4.so.0.1.1
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] Need help fixing executable stack
2006-01-06 17:30 [gentoo-dev] Need help fixing executable stack Thomas Cort
@ 2006-01-06 22:10 ` lnxg33k
2006-01-06 23:27 ` Mike Frysinger
1 sibling, 0 replies; 3+ messages in thread
From: lnxg33k @ 2006-01-06 22:10 UTC (permalink / raw
To: gentoo-dev
Thomas Cort wrote:
> When emerging wxGTK-2.4.2-r4 on alpha I get a QA message about
> executable stacks ( http://bugs.gentoo.org/113119#c10 ). I read the
> GNU Stack Quickstart (
> http://gentoo.org/proj/en/hardened/gnu-stack.xml ). However, I
> couldn't find any assembly files for wxGTK (ls -R | grep S$ only
> returns NEWS), nor could I find ENABLE_EXECUTE_STACK or TRAMPOLINE in
> any source files. Would append-flags -Wa,--noexecstack fix it, and is
> it the best fix?
>
> -Thomas
>
> Output of scanelf:
> # scanelf -qeR .
<snip>
Hi. I was just messing with this regarding games-emu/zsnes (Bug: 117771). In my
case, they were .asm files. Perhaps that's the same. Mine was an easy fix;
scanelf reported !WX errors. RWX seems to imply, from what I've read on the
gnu-stack guide, is that actual coding needs to take place. Just like the guide
says, --noexecstack will "fix" the issue, but it's really a work around. I'd
suggest posting a bug and let someone with assembly experience take it from
there; unless of course you can patch it yourself. Pretty much regurgitating
what was in the guide, but fixing the problem in the code is the "best fix".
Btw, nice email addy ;)
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] Need help fixing executable stack
2006-01-06 17:30 [gentoo-dev] Need help fixing executable stack Thomas Cort
2006-01-06 22:10 ` lnxg33k
@ 2006-01-06 23:27 ` Mike Frysinger
1 sibling, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2006-01-06 23:27 UTC (permalink / raw
To: gentoo-dev; +Cc: Thomas Cort
On Friday 06 January 2006 12:30, Thomas Cort wrote:
> When emerging wxGTK-2.4.2-r4 on alpha I get a QA message about
> executable stacks ( http://bugs.gentoo.org/113119#c10 ). I read the
> GNU Stack Quickstart (
> http://gentoo.org/proj/en/hardened/gnu-stack.xml ).
well you didnt read far enough down :)
http://www.gentoo.org/proj/en/hardened/gnu-stack.xml#doc_chap7
we are not able to qa check all arches at the moment for executable stacks due
to toolchain limitations, alpha included ... that means dont waste your time
trying to fix it
i've already updated portage to only warn about exec stacks on "fully
supported" architectures, that version just has yet to be released
-mike
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-06 23:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-06 17:30 [gentoo-dev] Need help fixing executable stack Thomas Cort
2006-01-06 22:10 ` lnxg33k
2006-01-06 23:27 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox