ARC: .exit.* sections can be discarded in .eh_frame regime
authorVineet Gupta <vgupta@synopsys.com>
Wed, 28 Sep 2016 21:43:25 +0000 (14:43 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 30 Sep 2016 21:48:23 +0000 (14:48 -0700)
commit99a2ca65d558ecdea4c184baad6730f2aec3aad0
tree80d8a5c1584abc3300c4c061991db76a6851bb68
parent86effd0dc675c36caed7b954d7f4f63b77c353b5
ARC: .exit.* sections can be discarded in .eh_frame regime

We used to keep the .exit.* sections as linker would fail in final link
due to references from .debug_frame which itself could not be discardrd
due to the forced "write,alloc" attributes for it.

|   LD      init/built-in.o
| `.exit.text' referenced in section `.debug_frame' of arch/arc/built-in.o: defined in discarded section `.exit.text' of arch/arc/built-in.o
| Makefile:949: recipe for target 'vmlinux' failed

With .debug_frame now retired, this hack is no longer needed.
kernel binary is now a little bit smaller as well.

closes STAR 9000549913

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/vmlinux.lds.S