You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: HG 1.2 Reported for operating system, platform: Linux, x86
Comments on the original bug report:
On 2011-02-24 09:36:07 +0000, Petr Pisar wrote:
While compiling SDL-1.2.14 with newer nasm (Hermes library in x86 assembler is embedded), I found the GNU-stack notice is missing resulting in library marked as requiring executable stack.
I discovered nasm-2.09 changed a way how output format argument (nasm -f elf) becomes a OUTPUT_FORMAT macro used to conditionalize the GNU-stack section:
Olde nasm defined OUTPUT_FORMAT as elf'. Version 2.09 defines it as elf32' on x86:
Short aliases \c{win}, \c{elf} and \c{macho} for output formats are
introduced. Each stands for \c{win32}, \c{elf32} and \c{macho32}
accordingly.
Thus SDL compiled with newer nasm misses the section and linker assumes the stack is executable.
On 2011-02-24 09:37:56 +0000, Petr Pisar wrote:
Created attachment 588
Fix
This patch changes the elf' format to elf32' (as the code is used on x86 only). It can be compiled with old and with new nasm successfully. Also I believe it still works with yasm, as it supports `elf32' format too.
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 1.2
Reported for operating system, platform: Linux, x86
Comments on the original bug report:
On 2011-02-24 09:36:07 +0000, Petr Pisar wrote:
On 2011-02-24 09:37:56 +0000, Petr Pisar wrote:
On 2011-02-24 09:41:47 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: