OSDN Git Service

UPSTREAM: kbuild: clang: add -no-integrated-as to KBUILD_[AC]FLAGS
authorMichael Davidson <md@google.com>
Tue, 25 Apr 2017 22:47:35 +0000 (15:47 -0700)
committerGreg Hackmann <ghackmann@google.com>
Mon, 16 Oct 2017 22:30:36 +0000 (15:30 -0700)
commitdda20e821420e8b5d190317db77a7630b8e8a294
tree7fc9f5936fb3f86987be5f44a879fc105e31cb65
parentc90c6bfac6dfd6a7367f718df370b6a19756efe5
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: Michael Davidson <md@google.com>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
(cherry picked from commit a37c45cd82e62a361706b9688a984a3a63957321)
Makefile