]> git.karo-electronics.de Git - linux-beck.git/commit
ARC: module: elide loop to save reference to .eh_frame
authorVineet Gupta <vgupta@synopsys.com>
Tue, 25 Oct 2016 17:43:20 +0000 (10:43 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 28 Oct 2016 17:10:28 +0000 (10:10 -0700)
commitd65283f7b695b5d04ca1ab58b6bb41f443b96286
tree824d7100ed1c3aba300c8ae2d37c1725432e8563
parentf644e3688855902ad11549029098a62cbbc8f558
ARC: module: elide loop to save reference to .eh_frame

The loop was really needed in .debug_frame regime where wanted make it
as SH_ALLOC so that apply_relocate_add() would process it. That's not
needed for .eh_frame, so we check this in apply_relocate_add() which
gets called for each section.

Note that we need to save reference to "section name strings" section in
module_frob_arch_sections() since apply_relocate_add() doesn't get that

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/module.h
arch/arc/kernel/module.c