LLVMLINUX: DO-NOT-UPSTREAM crypto: LLVMLinux: Explicitly pass through assembler options
Clang does not implicitly pass the -march flag to the assembler, but gcc does. Clang must be explicitly told to pass the flag to the assembler. Without the flag set the GNU assember reports the following error: /llvmlinux/build/targets/vexpress64/tmp/aes-ce-cipher-5b96de.s: Assembler messages: /llvmlinux/build/targets/vexpress64/tmp/aes-ce-cipher-5b96de.s:210: Error: selected processor does not support `aese v0.16b,v2.16b' /llvmlinux/build/targets/vexpress64/tmp/aes-ce-cipher-5b96de.s:210: Error: selected processor does not support `aesmc v0.16b,v0.16b' /llvmlinux/build/targets/vexpress64/tmp/aes-ce-cipher-5b96de.s:210: Error: selected processor does not support `aese v0.16b,v3.16b' ... clang-3.5: error: assembler command failed with exit code 1 (use -v to see invocation) make[3]: *** [arch/arm64/crypto/aes-ce-cipher.o] Error 1 make[2]: *** [arch/arm64/crypto] Error 2 The change was also tested with GCC. GCC requires the flag to be passed without -Xassembler. Both GCC and Clang work when -Wa is used. Change-Id: I84176f3e5aec2d294bf34bf168932fae8e2a6a80 Not-signed-off-by:Mark Charlebois <charlebm@gmail.com> Signed-off-by:
Greg Hackmann <ghackmann@google.com> Git-commit: 601dae6450625ffd7433e666515f3a7688da684b Git-repo: https://android.googlesource.com/kernel/common/ [satyap@codeaurora.org: trivial merge conflict resolution] Signed-off-by:
Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Loading
Please register or sign in to comment