From 5b0ad9a8a88c2052458e015572839ff060fff858 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 10 Sep 2017 02:45:24 +0800 Subject: [PATCH] crc32c: only add qualifiers for elf64 format they are not understood by non-elf formats Signed-off-by: Kefu Chai --- src/common/crc32c_intel_fast_asm.s | 2 ++ src/common/crc32c_intel_fast_zero_asm.s | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/common/crc32c_intel_fast_asm.s b/src/common/crc32c_intel_fast_asm.s index 2189684b4c75e..5c3cd3b197e5d 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 34b7f4890169f..ec1b78ffcb27d 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 -- 2.39.5