aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/kernel/vmlinux.lds.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S
index 2f4508f55fca..cecff24cc972 100644
--- a/arch/mips/kernel/vmlinux.lds.S
+++ b/arch/mips/kernel/vmlinux.lds.S
@@ -109,6 +109,10 @@ SECTIONS
109 .con_initcall.init : { *(.con_initcall.init) } 109 .con_initcall.init : { *(.con_initcall.init) }
110 __con_initcall_end = .; 110 __con_initcall_end = .;
111 SECURITY_INIT 111 SECURITY_INIT
112 /* .exit.text is discarded at runtime, not link time, to deal with
113 references from .rodata */
114 .exit.text : { *(.exit.text) }
115 .exit.data : { *(.exit.data) }
112 . = ALIGN(_PAGE_SIZE); 116 . = ALIGN(_PAGE_SIZE);
113 __initramfs_start = .; 117 __initramfs_start = .;
114 .init.ramfs : { *(.init.ramfs) } 118 .init.ramfs : { *(.init.ramfs) }
@@ -136,8 +140,6 @@ SECTIONS
136 140
137 /* Sections to be discarded */ 141 /* Sections to be discarded */
138 /DISCARD/ : { 142 /DISCARD/ : {
139 *(.exit.text)
140 *(.exit.data)
141 *(.exitcall.exit) 143 *(.exitcall.exit)
142 144
143 /* ABI crap starts here */ 145 /* ABI crap starts here */