Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 94cec697 authored by Mark Charlebois's avatar Mark Charlebois Committed by Satya Durga Srinivasu Prabhala
Browse files

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: default avatarMark Charlebois <charlebm@gmail.com>
Signed-off-by: default avatarGreg 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: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent cbb6dfa9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment