Merge pull request #219 from trofi/master

x86 asm: mark stack as non-executable
This commit is contained in:
Marko Viitanen 2018-12-17 10:25:35 +02:00 committed by GitHub
commit fd2dc57759
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1454,3 +1454,13 @@ FMA4_INSTR fnmsubss, fnmsub132ss, fnmsub213ss, fnmsub231ss
%endif %endif
%endmacro %endmacro
%endif %endif
%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