aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-10-09 15:23:02 +0900
committerPaul Mundt <lethal@linux-sh.org>2007-10-09 15:23:02 +0900
commit63482aaadacbc7e125d672bf8d8f2d39c13a49ed (patch)
tree47b24fdc01646343d31e0dfd3e20dd6e242d7e10 /arch/sh
parentsh: Fix up some section alignments in linker script. (diff)
downloadlinux-dev-63482aaadacbc7e125d672bf8d8f2d39c13a49ed.tar.xz
linux-dev-63482aaadacbc7e125d672bf8d8f2d39c13a49ed.zip
sh: Discard .exit.text/.exit.data at runtime.
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>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/kernel/vmlinux.lds.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/kernel/vmlinux.lds.S b/arch/sh/kernel/vmlinux.lds.S
index 3d16d6ef47e1..6d5abba2ee27 100644
--- a/arch/sh/kernel/vmlinux.lds.S
+++ b/arch/sh/kernel/vmlinux.lds.S
@@ -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);