Fixes from the PaX team to eliminate executable stack markings --- src/hermes/mmx_main.asm +++ src/hermes/mmx_main.asm @@ -70,5 +68,6 @@ endconvert: ret - - +%ifidn __OUTPUT_FORMAT__,elf +section .note.GNU-stack noalloc noexec nowrite progbits +%endif --- src/hermes/mmxp2_32.asm +++ src/hermes/mmxp2_32.asm @@ -381,6 +381,7 @@ _convert_bgr555_cheat: .L4: jmp _mmxreturn - - +%ifidn __OUTPUT_FORMAT__,elf +section .note.GNU-stack noalloc noexec nowrite progbits +%endif --- src/hermes/x86_main.asm +++ src/hermes/x86_main.asm @@ -123,3 +123,7 @@ _Hermes_X86_CPU: .L1: ret + +%ifidn __OUTPUT_FORMAT__,elf +section .note.GNU-stack noalloc noexec nowrite progbits +%endif --- src/hermes/x86p_16.asm +++ src/hermes/x86p_16.asm @@ -494,3 +494,6 @@ _ConvertX86p16_8RGB332: .L7 pop ebp jmp _x86return +%ifidn __OUTPUT_FORMAT__,elf +section .note.GNU-stack noalloc noexec nowrite progbits +%endif --- src/hermes/x86p_32.asm +++ src/hermes/x86p_32.asm @@ -1041,3 +1041,7 @@ _ConvertX86p32_8RGB332: .L4: jmp _x86return + +%ifidn __OUTPUT_FORMAT__,elf +section .note.GNU-stack noalloc noexec nowrite progbits +%endif