1 From 23cd0de28cc7978130b770dd59b18ac143253351 Mon Sep 17 00:00:00 2001
2 From: Vineet Gupta <vgupta@synopsys.com>
3 Date: Tue, 28 Jun 2016 09:42:25 +0530
4 Subject: [PATCH] ARC: unwind: ensure that .debug_frame is generated (vs.
7 With recent binutils update to support dwarf CFI pseudo-ops in gas, we
8 now get .eh_frame vs. .debug_frame. Although the call frame info is
9 exactly the same in both, the CIE differs, which the current kernel
10 unwinder can't cope with.
12 This broke both the kernel unwinder as well as loadable modules (latter
13 because of a new unhandled relo R_ARC_32_PCREL from .rela.eh_frame in
16 The ideal solution would be to switch unwinder to .eh_frame.
17 For now however we can make do by just ensureing .debug_frame is
18 generated by removing -fasynchronous-unwind-tables
20 .eh_frame generated with -gdwarf-2 -fasynchronous-unwind-tables
21 .debug_frame generated with -gdwarf-2
25 Cc: stable@vger.kernel.org
26 Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
28 arch/arc/Makefile | 2 --
29 1 file changed, 2 deletions(-)
31 --- a/arch/arc/Makefile
32 +++ b/arch/arc/Makefile
33 @@ -48,8 +48,6 @@ endif
37 -cflags-$(CONFIG_ARC_DW2_UNWIND) += -fasynchronous-unwind-tables
39 # By default gcc 4.8 generates dwarf4 which kernel unwinder can't grok
40 ifeq ($(atleast_gcc48),y)
41 cflags-$(CONFIG_ARC_DW2_UNWIND) += -gdwarf-2