aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/kernel
diff options
context:
space:
mode:
authorJesper Nilsson <jesper.nilsson@axis.com>2010-08-04 08:10:04 -0400
committerJesper Nilsson <jesper.nilsson@axis.com>2010-08-04 08:10:04 -0400
commit7c8a25b544c1659ad57de2394006fdd449325161 (patch)
treefa3f0584058b155fc028a2ac6a1f87aa408ad565 /arch/cris/kernel
parentdcb313c23f440873a5a382e6672ad6a684193e86 (diff)
CRIS: Discard exit.text and .data at runtime
This allows us to handle references from __bug_table. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/kernel')
-rw-r--r--arch/cris/kernel/vmlinux.lds.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/cris/kernel/vmlinux.lds.S b/arch/cris/kernel/vmlinux.lds.S
index 942051102bb5..789ad35f7e08 100644
--- a/arch/cris/kernel/vmlinux.lds.S
+++ b/arch/cris/kernel/vmlinux.lds.S
@@ -86,6 +86,16 @@ SECTIONS
86 } 86 }
87 SECURITY_INIT 87 SECURITY_INIT
88 88
89 /* .exit.text is discarded at runtime, not link time,
90 * to deal with references from __bug_table
91 */
92 .exit.text : {
93 EXIT_TEXT
94 }
95 .exit.data : {
96 EXIT_DATA
97 }
98
89#ifdef CONFIG_ETRAX_ARCH_V10 99#ifdef CONFIG_ETRAX_ARCH_V10
90#ifdef CONFIG_BLK_DEV_INITRD 100#ifdef CONFIG_BLK_DEV_INITRD
91 .init.ramfs : { 101 .init.ramfs : {