]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crc32c: only add qualifiers for elf64 format
authorKefu Chai <kchai@redhat.com>
Sat, 9 Sep 2017 18:45:24 +0000 (02:45 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 16 Sep 2017 02:43:32 +0000 (10:43 +0800)
they are not understood by non-elf formats

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/crc32c_intel_fast_asm.s
src/common/crc32c_intel_fast_zero_asm.s

index 2189684b4c75ed1056a80a222e897a59d6d7d686..5c3cd3b197e5d92a76f4c378431e4f1d629ebbcd 100644 (file)
@@ -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
index 34b7f4890169fef05b750d956214a9130fd7cc66..ec1b78ffcb27ddf6cd3d0b3bd88466e17189f38f 100644 (file)
@@ -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