From 78803703e6d47462b6d883f61bfe750e5ff794c0 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 16 Jun 2017 23:18:10 +0200 Subject: Windows: fix compilation error of assembly files after latest changes on Linux. --- src/Crypto/Twofish_x64.S | 3 ++- src/Crypto/Twofish_x86.S | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Crypto') diff --git a/src/Crypto/Twofish_x64.S b/src/Crypto/Twofish_x64.S index c3483e33..e5fa5ea8 100644 --- a/src/Crypto/Twofish_x64.S +++ b/src/Crypto/Twofish_x64.S @@ -312,8 +312,9 @@ movq %r8, %rdx; .endif ret; + .ifndef WINABI #if defined(__linux__) && defined(__ELF__) .section .note.GNU-stack,"",%progbits #endif - + .endif diff --git a/src/Crypto/Twofish_x86.S b/src/Crypto/Twofish_x86.S index 4f654871..d4af8cea 100644 --- a/src/Crypto/Twofish_x86.S +++ b/src/Crypto/Twofish_x86.S @@ -1,3 +1,4 @@ + .ifndef WINABI %ifidn __OUTPUT_FORMAT__,elf section .note.GNU-stack noalloc noexec nowrite progbits %endif @@ -7,4 +8,4 @@ section .note.GNU-stack noalloc noexec nowrite progbits %ifidn __OUTPUT_FORMAT__,elf64 section .note.GNU-stack noalloc noexec nowrite progbits %endif - + .endif \ No newline at end of file -- cgit v1.2.3