ARC: dw2 unwind: Reinstante unwinding out of modules
authorVineet Gupta <vgupta@synopsys.com>
Fri, 11 Dec 2015 12:34:22 +0000 (18:04 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 17 Dec 2015 05:40:23 +0000 (11:10 +0530)
commitbc79c9a7216562a2035d2f64f73626613c1300d0
tree7dceeabe3e3ec851813eb6f752e15eeb95bc7f58
parentff1c0b6a795bce744527bc10c8268127ed818b42
ARC: dw2 unwind: Reinstante unwinding out of modules

The fix which removed linear searching of dwarf (because binary lookup
data always exists) missed out on the fact that modules don't get the
binary lookup tables info. This caused unwinding out of modules to stop
working.

So add binary lookup header setup (equivalent of eh_frame_hdr setup) to
modules as well.

While at it, confine the header setup to within unwinder code,
reducing one API exposed out of unwinder code.

Fixes: 2e22502c080f ARC: dw2 unwind: Remove falllback linear search thru FDE entries
Cc: <stable@vger.kernel.org>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/unwind.h
arch/arc/kernel/setup.c
arch/arc/kernel/unwind.c