[MIPS] Discard .exit.text at runtime. At times gcc will place bits of __exit functions into .rodata. If compiled into the kernle itself we used to discard .exit.text - but not the bits left in .rodata. While harmless this did at times result in a large number of warnings. So until gcc fixes this, discard .exit.text at runtime. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+3 -1
+3 -1
arch/mips/kernel/vmlinux.lds.S
··· 106 106 .con_initcall.init : { *(.con_initcall.init) } 107 107 __con_initcall_end = .; 108 108 SECURITY_INIT 109 + /* .exit.text is discarded at runtime, not link time, to deal with 110 + references from .rodata */ 111 + .exit.text : { *(.exit.text) } 109 112 . = ALIGN(_PAGE_SIZE); 110 113 __initramfs_start = .; 111 114 .init.ramfs : { *(.init.ramfs) } ··· 136 133 137 134 /* Sections to be discarded */ 138 135 /DISCARD/ : { 139 - *(.exit.text) 140 136 *(.exit.data) 141 137 *(.exitcall.exit) 142 138