LINARO: Add -meabi gnu to the clang parameters

This makes sure clang uses _mcount on aarch64 and
__gnu_mcount_nc on arm32.
It has no effect on x86.

Signed-off-by: Bernhard Rosenkräer <Bernhard.Rosenkranzer@linaro.org>

Change-Id: I6ea2864eb4be78e7d9704f19ab79eb8b80026a8b
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Git-commit: fc0067eb042e1645f4c6e76ede1a49fbb5176a9e
Git-repo: https://android.googlesource.com/kernel/common/
[satyap@codeaurora.org: resolution of trivial merge conflicts]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
This commit is contained in:
Bernhard Rosenkränzer 2016-11-03 17:57:34 +01:00 committed by Satya Durga Srinivasu Prabhala
parent c77880dd01
commit eae5c7be6a

View File

@ -705,7 +705,7 @@ endif
ifneq ($(GCC_TOOLCHAIN),)
CLANG_GCC_TC := -gcc-toolchain $(GCC_TOOLCHAIN)
endif
KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) -meabi gnu
KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,)
KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable)