Skip to content

Commit 99a2ca6

Browse files
committed
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>
1 parent 86effd0 commit 99a2ca6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

arch/arc/kernel/vmlinux.lds.S

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,6 @@ SECTIONS
8282

8383
PERCPU_SECTION(L1_CACHE_BYTES)
8484

85-
/*
86-
* .exit.text is discard at runtime, not link time, to deal with
87-
* references from unwinding sections
88-
* It will be init freed, being inside [__init_start : __init_end]
89-
*/
90-
.exit.text : { EXIT_TEXT }
91-
.exit.data : { EXIT_DATA }
92-
9385
. = ALIGN(PAGE_SIZE);
9486
__init_end = .;
9587

0 commit comments

Comments
 (0)