diff --git a/src/filters/2xSaImmx.asm b/src/filters/2xSaImmx.asm index 2c4e2443..3370bcf9 100644 --- a/src/filters/2xSaImmx.asm +++ b/src/filters/2xSaImmx.asm @@ -24,7 +24,15 @@ ;%define FAR_POINTER - +%ifidn __OUTPUT_FORMAT__,elf +section .note.GNU-stack noalloc noexec nowrite progbits +%endif +%ifidn __OUTPUT_FORMAT__,elf32 +section .note.GNU-stack noalloc noexec nowrite progbits +%endif +%ifidn __OUTPUT_FORMAT__,elf64 +section .note.GNU-stack noalloc noexec nowrite progbits +%endif BITS 32 GLOBAL __2xSaILine diff --git a/src/filters/hq/asm/macros.mac b/src/filters/hq/asm/macros.mac index 3845b28b..5b3bd98e 100644 --- a/src/filters/hq/asm/macros.mac +++ b/src/filters/hq/asm/macros.mac @@ -1,3 +1,13 @@ +%ifidn __OUTPUT_FORMAT__,elf +section .note.GNU-stack noalloc noexec nowrite progbits +%endif +%ifidn __OUTPUT_FORMAT__,elf32 +section .note.GNU-stack noalloc noexec nowrite progbits +%endif +%ifidn __OUTPUT_FORMAT__,elf64 +section .note.GNU-stack noalloc noexec nowrite progbits +%endif + %ifdef __AMD64__ bits 64 %else