Mercurial > sdl-ios-xcode
comparison src/hermes/mmxp2_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 | 88c2d6aed428 |
comparison
equal
deleted
inserted
replaced
1198:b616ac4f39d1 | 1199:2d6dc7de1145 |
---|---|
27 GLOBAL _ConvertMMXpII32_16RGB555 | 27 GLOBAL _ConvertMMXpII32_16RGB555 |
28 GLOBAL _ConvertMMXpII32_16BGR555 | 28 GLOBAL _ConvertMMXpII32_16BGR555 |
29 | 29 |
30 EXTERN _mmxreturn | 30 EXTERN _mmxreturn |
31 | 31 |
32 SECTION .note.GNU-stack noalloc progbits noexec nowrite | |
33 SECTION .data | 32 SECTION .data |
34 | 33 |
35 ALIGN 8 | 34 ALIGN 8 |
36 | 35 |
37 ;; Constants for conversion routines | 36 ;; Constants for conversion routines |
381 jnz .L3 | 380 jnz .L3 |
382 | 381 |
383 .L4: | 382 .L4: |
384 jmp _mmxreturn | 383 jmp _mmxreturn |
385 | 384 |
386 | 385 %ifidn __OUTPUT_FORMAT__,elf |
387 | 386 section .note.GNU-stack noalloc noexec nowrite progbits |
387 %endif |