summaryrefslogtreecommitdiff
path: root/arch/hexagon/Makefile
diff options
context:
space:
mode:
authorSid Manning <sidneym@codeaurora.org>2021-04-23 15:06:58 -0500
committerBrian Cain <bcain@codeaurora.org>2021-05-03 11:04:18 -0500
commit788dcee0306e1bdbae1a76d1b3478bb899c5838e (patch)
tree18cfd6a6d60418918b5106678f27e172a157657a /arch/hexagon/Makefile
parent9ccce092fc64d19504fa54de4fd659e279cc92e7 (diff)
Hexagon: fix build errors
Fix type-o in ptrace.c. Add missing include: asm/hexagon_vm.h Remove superfluous cast. Replace 'p3_0' with 'preds'. Signed-off-by: Sid Manning <sidneym@codeaurora.org> Add -mlong-calls to build flags. Signed-off-by: Brian Cain <bcain@codeaurora.org> Tested-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'arch/hexagon/Makefile')
-rw-r--r--arch/hexagon/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/hexagon/Makefile b/arch/hexagon/Makefile
index c168c6980d05..38264831905b 100644
--- a/arch/hexagon/Makefile
+++ b/arch/hexagon/Makefile
@@ -10,6 +10,9 @@ LDFLAGS_vmlinux += -G0
# Do not use single-byte enums; these will overflow.
KBUILD_CFLAGS += -fno-short-enums
+# We must use long-calls:
+KBUILD_CFLAGS += -mlong-calls
+
# Modules must use either long-calls, or use pic/plt.
# Use long-calls for now, it's easier. And faster.
# KBUILD_CFLAGS_MODULE += -fPIC