Bug 134632 - media-libs/libsdl-1.2.10: QA Notice: executable stacks
Bug#: 134632 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: public@mroot.net
Component: Games
URL: 
Summary: media-libs/libsdl-1.2.10: QA Notice: executable stacks
Keywords:  
Status Whiteboard: 
Opened: 2006-05-28 06:35 0000
Description:   Opened: 2006-05-28 06:35 0000
When emerging , I get:

[...]
gzipping man page: SDL_keysym.3
gzipping man page: SDL_mutexP.3
gzipping man page: SDL_mutexV.3
strip: i686-pc-linux-gnu-strip --strip-unneeded
   usr/lib/libSDL-1.2.so.0.7.3
   usr/lib/libSDL.a
   usr/lib/libSDLmain.a
removing executable bit: /usr/lib/libSDL.la

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.
 For more information, see http://hardened.gentoo.org/gnu-stack.xml
 Please include this file in your report:
 /var/tmp/portage/libsdl-1.2.10/temp/scanelf-execstack.log
"RWX --- --- usr/lib/libSDL-1.2.so.0.7.3"

>>> Merging media-libs/libsdl-1.2.10 to /
--- /usr/
--- /usr/bin/
>>> /usr/bin/sdl-config
[...]

The files follow.

------- Comment #1 From Martin Wegner 2006-05-28 06:48:19 0000 -------
Created an attachment (id=87731) [details]
scanelf-execstack.log created by portage

Affected libSDL-1.2.so.0.7.3 can be found here:
http://files.mgeek.de/libSDL-1.2.so.0.7.3

------- Comment #2 From SpanKY 2006-06-04 08:19:36 0000 -------
your yasm is probably broken

------- Comment #3 From SpanKY 2006-06-04 08:20:19 0000 -------
*** Bug 135173 has been marked as a duplicate of this bug. ***

------- Comment #4 From Mr. Bones. 2006-06-04 09:15:05 0000 -------
I can confirm this with nasm.

------- Comment #5 From Mr. Bones. 2006-06-04 09:31:59 0000 -------
Created an attachment (id=88356) [details]
output from libsdl build

Here's the full output.  I think it's because common.asm is compiled separately
and doesn't have the .note.GNU-stack ELF section.

------- Comment #6 From SpanKY 2006-06-08 02:42:59 0000 -------
should be fixed in cvs now

this was a two part bug in reality:
 - nasm users had common.asm compiled when it shouldnt have been causing a
0-byte asm file w/execstacks to be included
 - yasm users werent getting the 'no-exec-stack' markings included