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
Description:   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

------- Comment #1 From Erik Musick 2006-01-05 19:06:50 0000 -------
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.

------- Comment #2 From Erik Musick 2006-01-05 21:20:58 0000 -------
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.

------- Comment #3 From Erik Musick 2006-01-05 21:24:34 0000 -------
Created an attachment (id=76296) [details]
Removes QA Notice about executable stacks by fixing scanelf !WX output

See above (first time posting an attachment)

------- Comment #4 From Tupone Alfredo 2006-03-15 13:38:30 0000 -------
fixed in CVS