diff --git a/src/common/crc32c_intel_fast_asm.s b/src/common/crc32c_intel_fast_asm.s index 2189684b4c7..5c3cd3b197e 100644 --- a/src/common/crc32c_intel_fast_asm.s +++ b/src/common/crc32c_intel_fast_asm.s @@ -662,5 +662,7 @@ global %1_slver %endmacro ;;; func core, ver, snum slversion crc32_iscsi_00, 00, 02, 0014 +%ifidn __OUTPUT_FORMAT__, elf64 ; inform linker that this doesn't require executable stack section .note.GNU-stack noalloc noexec nowrite progbits +%endif diff --git a/src/common/crc32c_intel_fast_zero_asm.s b/src/common/crc32c_intel_fast_zero_asm.s index 34b7f489016..ec1b78ffcb2 100644 --- a/src/common/crc32c_intel_fast_zero_asm.s +++ b/src/common/crc32c_intel_fast_zero_asm.s @@ -644,5 +644,7 @@ global %1_slver %endmacro ;;; func core, ver, snum slversion crc32_iscsi_zero_00, 00, 02, 0014 +%ifidn __OUTPUT_FORMAT__, elf64 ; inform linker that this doesn't require executable stack section .note.GNU-stack noalloc noexec nowrite progbits +%endif