Message ID | 20170425224735.131835-1-mka@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
2017-04-26 7:47 GMT+09:00 Matthias Kaehlcke <mka@chromium.org>: > From: Michael Davidson <md@google.com> > > 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> > --- Applied to linux-kbuild/kbuild. Thanks!
diff --git a/Makefile b/Makefile index 5039b9148d15..3832c8243334 100644 --- a/Makefile +++ b/Makefile @@ -710,6 +710,8 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) # See modpost pattern 2 KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior) +KBUILD_CFLAGS += $(call cc-option, -no-integrated-as) +KBUILD_AFLAGS += $(call cc-option, -no-integrated-as) else # These warnings generated too much noise in a regular build.