aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2016-11-03 17:57:34 +0100
committerSumit Semwal <sumit.semwal@linaro.org>2016-12-20 22:19:27 +0530
commite2302292e7d31c81be53ae0719ce5dda6e86ab42 (patch)
tree5bea123493c0048f9c0b0af11521f4417719475a
parent30963a878a4c93ff73e811c9fa9730029c4497fc (diff)
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änzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index efddd646c5df..f330f6e8e3b0 100644
--- a/Makefile
+++ b/Makefile
@@ -381,7 +381,7 @@ endif
ifneq ($(IA),1)
CLANG_IA_FLAG = -no-integrated-as
endif
-CLANG_FLAGS := $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_IA_FLAG)
+CLANG_FLAGS := $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_IA_FLAG) -meabi gnu
endif
# Use USERINCLUDE when you must reference the UAPI directories only.