Skip to content

Commit

Permalink
sh: Discard .exit.text/.exit.data at runtime.
Browse files Browse the repository at this point in the history
These were previously discarded at link time, though as with MIPS
we keep them around until runtime to satisfy .rodata references.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Oct 9, 2007
1 parent 3497337 commit 63482aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/sh/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ SECTIONS
__con_initcall_end = .;
SECURITY_INIT

/* .exit.text is discarded at runtime, not link time, to deal with
references from .rodata */
.exit.text : { *(.exit.text) }
.exit.data : { *(.exit.data) }

#ifdef CONFIG_BLK_DEV_INITRD
. = ALIGN(PAGE_SIZE);

Expand Down

0 comments on commit 63482aa

Please sign in to comment.