projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3497337
)
sh: Discard .exit.text/.exit.data at runtime.
author
Paul Mundt
<lethal@linux-sh.org>
Tue, 9 Oct 2007 06:23:02 +0000
(15:23 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Tue, 9 Oct 2007 06:23:02 +0000
(15:23 +0900)
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>
arch/sh/kernel/vmlinux.lds.S
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/kernel/vmlinux.lds.S
b/arch/sh/kernel/vmlinux.lds.S
index 3d16d6ef47e1f31cdadefbb836cf66baff97df87..6d5abba2ee271a8147be2f56b2502ccd75600859 100644
(file)
--- 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);