Bug 170187

Summary: /usr/lib/libSDL-1.2.so.0.7.1 is marked as needing an executable stack
Product: [Fedora] Fedora Reporter: Russell Coker <rcoker>
Component: SDLAssignee: Thomas Woerner <twoerner>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: gajownik, netllama, selinux, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-27 13:45:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Russell Coker 2005-10-08 14:16:43 UTC
From Bugzilla Helper: User-Agent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.91 (like Gecko)  Description of problem:   GNU_STACK      0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4    Above is the GNU_STACK marking of this shared object.  A quick test with the  civclient program suggests that it doesn't really need this (it appears to  work without it).    I suspect that it should be shipped as "RW".  If it can't be then that's a bug  too.   Version-Release number of selected component (if applicable): 1.2.8-3.2  How reproducible: Always  Steps to Reproduce: 1. 2. 3.     Additional info:

Comment 1 Thomas Woerner 2005-11-11 16:21:13 UTC
Ok, when should I turn off executable stack?

execstack says, that libSDL requires exec stack:

$ execstack -q /usr/lib/libSDL-1.2.so.0.7.1
X /usr/lib/libSDL-1.2.so.0.7.1

The output of obdum is this:

$ objdump -p /usr/lib/libSDL-1.2.so.0.7.1 | grep -i stack
   STACK off    0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2

What to do?

Comment 2 Russell Coker 2005-11-12 05:52:40 UTC
http://people.redhat.com/drepper/nonselsec.pdf 
 
The above URL has all the information you need. 
 
For an assembler file you need to add -Wa,--execstack to the compiler 
command-line. 

Comment 3 Tom London 2006-01-25 16:27:16 UTC
execstack for libSDL prevents ekiga from starting.



Comment 4 Dawid Gajownik 2006-01-25 19:30:20 UTC
You may want to steal^Wborrow some patches from Gentoo ;-)
http://catmur.co.uk/gentoo/trees/gentopia/media-libs/libsdl/files/ (I'm not
shure whether this mirror is up-to-date)
http://catmur.co.uk/gentoo/trees/gentopia/media-libs/libsdl/files/libsdl-1.2.9-no-exec-stack.patch

Comment 5 Thomas Woerner 2006-01-27 13:45:20 UTC
Fixed in rawhide in rpm SDL-1.2.9-5.