Commit 5a00c8d7 authored by Sam Lantinga's avatar Sam Lantinga

Date: Tue, 1 Nov 2005 20:25:10 +0100

From: Dirk Mueller
Subject: [PATCH] build SDL with nonexecutable stack


libSDL is by default marked with an executable stack, which it doesn't
actually need. the reason for this is that there are assembler files in the
source tree not properly annotated with the "noexec stack" section. As such
the linker does a safe-fallback and marks the whole lib as "requires
executable stack".

the patch below removes this by adding annotations. As far as I can see it
shouldn't break anything.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401169
parent f66fc316
...@@ -13,6 +13,7 @@ GLOBAL _ConvertMMX ...@@ -13,6 +13,7 @@ GLOBAL _ConvertMMX
GLOBAL _mmxreturn GLOBAL _mmxreturn
SECTION .note.GNU-stack noalloc progbits noexec nowrite
SECTION .text SECTION .text
;; _ConvertMMX: ;; _ConvertMMX:
......
...@@ -29,6 +29,7 @@ GLOBAL _ConvertMMXpII32_16BGR555 ...@@ -29,6 +29,7 @@ GLOBAL _ConvertMMXpII32_16BGR555
EXTERN _mmxreturn EXTERN _mmxreturn
SECTION .note.GNU-stack noalloc progbits noexec nowrite
SECTION .data SECTION .data
ALIGN 8 ALIGN 8
......
...@@ -16,7 +16,7 @@ GLOBAL _x86return ...@@ -16,7 +16,7 @@ GLOBAL _x86return
GLOBAL _Hermes_X86_CPU GLOBAL _Hermes_X86_CPU
SECTION .note.GNU-stack noalloc progbits noexec nowrite
SECTION .data SECTION .data
cpu_flags dd 0 cpu_flags dd 0
......
...@@ -27,7 +27,7 @@ GLOBAL _ConvertX86p16_8RGB332 ...@@ -27,7 +27,7 @@ GLOBAL _ConvertX86p16_8RGB332
EXTERN _ConvertX86 EXTERN _ConvertX86
EXTERN _x86return EXTERN _x86return
SECTION .note.GNU-stack noalloc progbits noexec nowrite
SECTION .text SECTION .text
......
...@@ -25,6 +25,7 @@ GLOBAL _ConvertX86p32_8RGB332 ...@@ -25,6 +25,7 @@ GLOBAL _ConvertX86p32_8RGB332
EXTERN _x86return EXTERN _x86return
SECTION .note.GNU-stack noalloc progbits noexec nowrite
SECTION .text SECTION .text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment