Bug 117771 - games-emulation/zsnes QA notice for executable stacks
|
Bug#:
117771
|
Product: Gentoo Linux
|
Version: 2005.1
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: games@gentoo.org
|
Reported By: lnxg33k@gmail.com
|
|
Component: Games
|
|
|
URL:
|
|
Summary: games-emulation/zsnes QA notice for executable stacks
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2006-01-04 11:47 0000
|
Running on ~x86. Not sure where this (and future) bugs should be posted, but
here it is:
QA Notice: the following files contain executable stacks
Files with executable stacks will not work properly (or at all!)
on some architectures/operating systems. A bug should be filed
at http://bugs.gentoo.org/ to make sure the file is fixed.
RWX --- --- usr/games/bin/zsnes
Looking at g.o/proj/en/hardened/gnu-stack.xml, this seems to be just a lack of
".note.GNU-stack" entries. I'm not exactly clear on the steps it takes to
compile the code after the changes are made. If no one minds and is willing to
tell me how to check and submit my changes, I'd be more than glad to do so.
Thanks.
Ok. So, I did some reading on my own and went ahead ... For all the files
showing up as !WX using 'scanelf -qeR .', I added the following:
%ifidn __OUTPUT_FORMAT__,elf
section .note.GNU-stack noalloc noexec nowrite progbits
%endif
That cleared up the QA Notice on emerge and the scanelf output. Re-emerged
zsnes-1.42 and all seems to be well. I've gone ahead and included the
attachment. Hopefully this saves someone some time. Any suggestions are
appreciated.