nasm 2.09 compatibility
nasm-2.09 makes `elf' alias to `elf32', thus __OUTPUT_FORMAT__ macro becomes `elf32' instead of `elf' (on x86). Unmatched macro value causes omitting .note.GNU-stack marker and creates ELFs with executable stack. This is unneeded and attracts security policies like SELinux. --HG-- branch : SDL-1.2
This commit is contained in:
parent
eff699e265
commit
ae48cd353d
6 changed files with 7 additions and 7 deletions
|
@ -69,6 +69,6 @@ endconvert:
|
|||
|
||||
ret
|
||||
|
||||
%ifidn __OUTPUT_FORMAT__,elf
|
||||
%ifidn __OUTPUT_FORMAT__,elf32
|
||||
section .note.GNU-stack noalloc noexec nowrite progbits
|
||||
%endif
|
||||
|
|
|
@ -400,6 +400,6 @@ _convert_bgr555_cheat:
|
|||
.L4:
|
||||
retn
|
||||
|
||||
%ifidn __OUTPUT_FORMAT__,elf
|
||||
%ifidn __OUTPUT_FORMAT__,elf32
|
||||
section .note.GNU-stack noalloc noexec nowrite progbits
|
||||
%endif
|
||||
|
|
|
@ -70,6 +70,6 @@ endconvert:
|
|||
|
||||
|
||||
|
||||
%ifidn __OUTPUT_FORMAT__,elf
|
||||
%ifidn __OUTPUT_FORMAT__,elf32
|
||||
section .note.GNU-stack noalloc noexec nowrite progbits
|
||||
%endif
|
||||
|
|
|
@ -485,6 +485,6 @@ _ConvertX86p16_8RGB332:
|
|||
.L7 pop ebp
|
||||
retn
|
||||
|
||||
%ifidn __OUTPUT_FORMAT__,elf
|
||||
%ifidn __OUTPUT_FORMAT__,elf32
|
||||
section .note.GNU-stack noalloc noexec nowrite progbits
|
||||
%endif
|
||||
|
|
|
@ -1040,6 +1040,6 @@ _ConvertX86p32_8RGB332:
|
|||
.L4:
|
||||
retn
|
||||
|
||||
%ifidn __OUTPUT_FORMAT__,elf
|
||||
%ifidn __OUTPUT_FORMAT__,elf32
|
||||
section .note.GNU-stack noalloc noexec nowrite progbits
|
||||
%endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue