Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134632 - media-libs/libsdl-1.2.10: QA Notice: executable stacks
Summary: media-libs/libsdl-1.2.10: QA Notice: executable stacks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 135173 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-28 06:35 UTC by Martin Wegner
Modified: 2006-06-08 02:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
scanelf-execstack.log created by portage (scanelf-execstack.log,198 bytes, text/x-log)
2006-05-28 06:48 UTC, Martin Wegner
Details
output from libsdl build (out,102.05 KB, text/plain)
2006-06-04 09:31 UTC, Mr. Bones. (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Wegner 2006-05-28 06:35:11 UTC
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 Martin Wegner 2006-05-28 06:48:19 UTC
Created attachment 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 SpanKY gentoo-dev 2006-06-04 08:19:36 UTC
your yasm is probably broken
Comment 3 SpanKY gentoo-dev 2006-06-04 08:20:19 UTC
*** Bug 135173 has been marked as a duplicate of this bug. ***
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2006-06-04 09:15:05 UTC
I can confirm this with nasm.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2006-06-04 09:31:59 UTC
Created attachment 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 SpanKY gentoo-dev 2006-06-08 02:42:59 UTC
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