Mercurial > sdl-ios-xcode
comparison src/hermes/x86p_32.asm @ 1199:2d6dc7de1145
From: Mike Frysinger <vapier@gentoo.org>
To: sdl@libsdl.org
Date: Sun, 11 Dec 2005 22:57:37 -0500
Subject: [SDL] exec stack in libsdl update
i posted back in September a patch to remove executable stacks:
http://www.devolution.com/pipermail/sdl/2005-September/070626.html
later in November, a similar patch was merged it seems:
http://www.libsdl.org/cgi/cvsweb.cgi/SDL12/src/hermes/mmx_main.asm
however, this lacks the additional output format checks that i posted in my
patch ... this isnt a problem if the hermes asm code is only ever used to
produce ELF objects, but if this is not true, then the additional checks in
my original patch will need to be merged
-mike
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 12 Dec 2005 09:13:12 +0000 |
parents | da33b7e6d181 |
children | 393092a3ebf6 |
comparison
equal
deleted
inserted
replaced
1198:b616ac4f39d1 | 1199:2d6dc7de1145 |
---|---|
23 GLOBAL _ConvertX86p32_16BGR555 | 23 GLOBAL _ConvertX86p32_16BGR555 |
24 GLOBAL _ConvertX86p32_8RGB332 | 24 GLOBAL _ConvertX86p32_8RGB332 |
25 | 25 |
26 EXTERN _x86return | 26 EXTERN _x86return |
27 | 27 |
28 SECTION .note.GNU-stack noalloc progbits noexec nowrite | |
29 SECTION .text | 28 SECTION .text |
30 | |
31 | 29 |
32 ;; _Convert_* | 30 ;; _Convert_* |
33 ;; Paramters: | 31 ;; Paramters: |
34 ;; ESI = source | 32 ;; ESI = source |
35 ;; EDI = dest | 33 ;; EDI = dest |
1040 dec ecx | 1038 dec ecx |
1041 jnz .L3 | 1039 jnz .L3 |
1042 | 1040 |
1043 .L4: | 1041 .L4: |
1044 jmp _x86return | 1042 jmp _x86return |
1043 | |
1044 %ifidn __OUTPUT_FORMAT__,elf | |
1045 section .note.GNU-stack noalloc noexec nowrite progbits | |
1046 %endif |