aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/kernel/vmlinux.lds.S')
-rw-r--r--arch/blackfin/kernel/vmlinux.lds.S16
1 files changed, 14 insertions, 2 deletions
diff --git a/arch/blackfin/kernel/vmlinux.lds.S b/arch/blackfin/kernel/vmlinux.lds.S
index 8b67167cb4f4..119fbdb46475 100644
--- a/arch/blackfin/kernel/vmlinux.lds.S
+++ b/arch/blackfin/kernel/vmlinux.lds.S
@@ -166,6 +166,20 @@ SECTIONS
166 } 166 }
167 PERCPU(4) 167 PERCPU(4)
168 SECURITY_INIT 168 SECURITY_INIT
169
170 /* we have to discard exit text and such at runtime, not link time, to
171 * handle embedded cross-section references (alt instructions, bug
172 * table, eh_frame, etc...)
173 */
174 .exit.text :
175 {
176 EXIT_TEXT
177 }
178 .exit.data :
179 {
180 EXIT_DATA
181 }
182
169 .init.ramfs : 183 .init.ramfs :
170 { 184 {
171 . = ALIGN(4); 185 . = ALIGN(4);
@@ -264,8 +278,6 @@ SECTIONS
264 278
265 /DISCARD/ : 279 /DISCARD/ :
266 { 280 {
267 EXIT_TEXT
268 EXIT_DATA
269 *(.exitcall.exit) 281 *(.exitcall.exit)
270 } 282 }
271} 283}