Windows: fix compilation error of assembly files after latest changes on Linux.

This commit is contained in:
Mounir IDRASSI 2017-06-16 23:18:10 +02:00
parent 5d0321291f
commit 78803703e6
No known key found for this signature in database
GPG Key ID: DD0C382D5FCFB8FC
2 changed files with 4 additions and 2 deletions

View File

@ -312,8 +312,9 @@ movq %r8, %rdx;
.endif .endif
ret; ret;
.ifndef WINABI
#if defined(__linux__) && defined(__ELF__) #if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits .section .note.GNU-stack,"",%progbits
#endif #endif
.endif

View File

@ -1,3 +1,4 @@
.ifndef WINABI
%ifidn __OUTPUT_FORMAT__,elf %ifidn __OUTPUT_FORMAT__,elf
section .note.GNU-stack noalloc noexec nowrite progbits section .note.GNU-stack noalloc noexec nowrite progbits
%endif %endif
@ -7,4 +8,4 @@ section .note.GNU-stack noalloc noexec nowrite progbits
%ifidn __OUTPUT_FORMAT__,elf64 %ifidn __OUTPUT_FORMAT__,elf64
section .note.GNU-stack noalloc noexec nowrite progbits section .note.GNU-stack noalloc noexec nowrite progbits
%endif %endif
.endif