diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-06-30 12:53:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-06-30 12:53:43 -0400 |
commit | 284341d2605da0ab231bc7486ff032c4f1563819 (patch) | |
tree | fb72188066d343db7e55d3aa439af802cc05ea01 | |
parent | 20bfdca19976994e5537aa786c39375bbd103b53 (diff) | |
parent | 9bd54517ee86cb164c734f72ea95aeba4804f10b (diff) |
Merge tag 'arc-4.7-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc
Pull ARC fix from Vineet Gupta:
"Reinstate dwarf unwinder/loadable-modules with new gnu tools"
* tag 'arc-4.7-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
arc: unwind: warn only once if DW2_UNWIND is disabled
ARC: unwind: ensure that .debug_frame is generated (vs. .eh_frame)
-rw-r--r-- | arch/arc/Makefile | 2 | ||||
-rw-r--r-- | arch/arc/kernel/stacktrace.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/arch/arc/Makefile b/arch/arc/Makefile index d4df6be66d58..85814e74677d 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile | |||
@@ -66,8 +66,6 @@ endif | |||
66 | 66 | ||
67 | endif | 67 | endif |
68 | 68 | ||
69 | cflags-$(CONFIG_ARC_DW2_UNWIND) += -fasynchronous-unwind-tables | ||
70 | |||
71 | # By default gcc 4.8 generates dwarf4 which kernel unwinder can't grok | 69 | # By default gcc 4.8 generates dwarf4 which kernel unwinder can't grok |
72 | ifeq ($(atleast_gcc48),y) | 70 | ifeq ($(atleast_gcc48),y) |
73 | cflags-$(CONFIG_ARC_DW2_UNWIND) += -gdwarf-2 | 71 | cflags-$(CONFIG_ARC_DW2_UNWIND) += -gdwarf-2 |
diff --git a/arch/arc/kernel/stacktrace.c b/arch/arc/kernel/stacktrace.c index e0efff15a5ae..b9192a653b7e 100644 --- a/arch/arc/kernel/stacktrace.c +++ b/arch/arc/kernel/stacktrace.c | |||
@@ -142,7 +142,7 @@ arc_unwind_core(struct task_struct *tsk, struct pt_regs *regs, | |||
142 | * prelogue is setup (callee regs saved and then fp set and not other | 142 | * prelogue is setup (callee regs saved and then fp set and not other |
143 | * way around | 143 | * way around |
144 | */ | 144 | */ |
145 | pr_warn("CONFIG_ARC_DW2_UNWIND needs to be enabled\n"); | 145 | pr_warn_once("CONFIG_ARC_DW2_UNWIND needs to be enabled\n"); |
146 | return 0; | 146 | return 0; |
147 | 147 | ||
148 | #endif | 148 | #endif |