aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/Makefile
diff options
context:
space:
mode:
authorNathan Huckleberry <nhuck15@gmail.com>2019-08-22 16:26:53 -0400
committerRussell King <rmk+kernel@armlinux.org.uk>2019-08-29 02:58:01 -0400
commit6dc5fd93b2f1ef75d5e50fced8cb193811f25f22 (patch)
treeaef0050d64248b77af6b90a9601146739227180b /arch/arm/lib/Makefile
parent834020366da9ab3fb87d1eb9a3160eb22dbed63a (diff)
ARM: 8900/1: UNWINDER_FRAME_POINTER implementation for Clang
The stackframe setup when compiled with clang is different. Since the stack unwinder expects the gcc stackframe setup it fails to print backtraces. This patch adds support for the clang stackframe setup. Link: https://github.com/ClangBuiltLinux/linux/issues/35 Cc: clang-built-linux@googlegroups.com Suggested-by: Tri Vo <trong@google.com> Signed-off-by: Nathan Huckleberry <nhuck@google.com> Tested-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/lib/Makefile')
-rw-r--r--arch/arm/lib/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile
index b25c54585048..6d2ba454f25b 100644
--- a/arch/arm/lib/Makefile
+++ b/arch/arm/lib/Makefile
@@ -5,7 +5,7 @@
5# Copyright (C) 1995-2000 Russell King 5# Copyright (C) 1995-2000 Russell King
6# 6#
7 7
8lib-y := backtrace.o changebit.o csumipv6.o csumpartial.o \ 8lib-y := changebit.o csumipv6.o csumpartial.o \
9 csumpartialcopy.o csumpartialcopyuser.o clearbit.o \ 9 csumpartialcopy.o csumpartialcopyuser.o clearbit.o \
10 delay.o delay-loop.o findbit.o memchr.o memcpy.o \ 10 delay.o delay-loop.o findbit.o memchr.o memcpy.o \
11 memmove.o memset.o setbit.o \ 11 memmove.o memset.o setbit.o \
@@ -19,6 +19,12 @@ lib-y := backtrace.o changebit.o csumipv6.o csumpartial.o \
19mmu-y := clear_user.o copy_page.o getuser.o putuser.o \ 19mmu-y := clear_user.o copy_page.o getuser.o putuser.o \
20 copy_from_user.o copy_to_user.o 20 copy_from_user.o copy_to_user.o
21 21
22ifdef CONFIG_CC_IS_CLANG
23 lib-y += backtrace-clang.o
24else
25 lib-y += backtrace.o
26endif
27
22# using lib_ here won't override already available weak symbols 28# using lib_ here won't override already available weak symbols
23obj-$(CONFIG_UACCESS_WITH_MEMCPY) += uaccess_with_memcpy.o 29obj-$(CONFIG_UACCESS_WITH_MEMCPY) += uaccess_with_memcpy.o
24 30