Commit 8a89d5fc authored by Michael Davidson's avatar Michael Davidson Committed by Greg Hackmann
Browse files

UPSTREAM: kbuild: clang: add -no-integrated-as to KBUILD_[AC]FLAGS



The Linux Kernel relies on GCC's acceptance of inline assembly as an
opaque object which will not have any validation performed on the content.
The current behaviour in LLVM is to perform validation of the contents by
means of parsing the input if the MC layer can handle it.

Disable clangs integrated assembler and use the GNU assembler instead.

Wording-mostly-from: Saleem Abdulrasool <compnerd@compnerd.org>
Signed-off-by: default avatarMichael Davidson <md@google.com>
Signed-off-by: default avatarMatthias Kaehlcke <mka@chromium.org>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
(cherry picked from commit a37c45cd)
Signed-off-by: default avatarGreg Hackmann <ghackmann@google.com>

Change-Id: Iae412ad5294f8f5e4d66f0085a5dd70f5464ac91
parent 3ef0a0c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment