libgdk-pixbuf2 executable stack bit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdk-pixbuf |
Won't Fix
|
Low
|
|||
gdk-pixbuf (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libgdk-pixbuf2
libgdk-pixbuf2 has an executable stack:
bluefox@
RWX --- --- /usr/lib/
Removing this can be corrected in one of two ways:
A) Build without MMX by fixing debian/rules to pass "--disable-mmx" to ./configure (currently it does NOT)
B) Add to the end of the following source files:
gdk-pixbuf/
gdk-pixbuf/
gdk-pixbuf/
gdk-pixbuf/
The following code block:
#ifdef __ELF__
.section .note.GNU-
#endif
Either of these works fine. The second path may warrent a look at the assembly code to make sure it doesn't try to execute the stack; but in general, this doesn't happen. The output .o file simply lacks a .note.GNU-stack segment and to be "safe" gcc assumes an executable stack is necessary[1].
I am personally partial to removing assembly code anyway, so I prefer option (A).
Result of option (A):
bluefox@
TYPE STK/REL/PTL TEXTREL FILE
ET_DYN RW- --- RW- - debian/
ET_DYN RW- --- RW- - debian/
Result of option (B):
bluefox@
TYPE STK/REL/PTL TEXTREL FILE
ET_DYN RW- --- RW- - debian/
ET_DYN RW- --- RW- - debian/
Pick one.
Changed in gdk-pixbuf: | |
status: | Unknown → Rejected |
Changed in gdk-pixbuf: | |
status: | Invalid → Won't Fix |
Changed in gdk-pixbuf: | |
importance: | Unknown → Low |
Oh yeah, I should mention, Option (B) should be sent upstream at some point. I haven't done this.