x86: tell gnu ld that we don't require an executable stack
Fixes #2 Change-Id: Ie15c57ccf2f9721cb35102765d759817f2607cd7
This commit is contained in:
parent
e80d569d3a
commit
c3c870ed74
@ -229,3 +229,14 @@ fake_got:
|
||||
%else
|
||||
%define SECTION_RODATA section .rodata
|
||||
%endif
|
||||
|
||||
|
||||
; Tell GNU ld that we don't require an executable stack.
|
||||
%ifidn __OUTPUT_FORMAT__,elf32
|
||||
section .note.GNU-stack noalloc noexec nowrite progbits
|
||||
section .text
|
||||
%elifidn __OUTPUT_FORMAT__,elf64
|
||||
section .note.GNU-stack noalloc noexec nowrite progbits
|
||||
section .text
|
||||
%endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user