crc32c: only add qualifiers for elf64 format

they are not understood by non-elf formats

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2017-09-10 02:45:24 +08:00
parent b7fbe46d55
commit 5b0ad9a8a8
2 changed files with 4 additions and 0 deletions

View 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

View 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