[MIPS] Discard .exit.text at linktime.
This fixes fairly unobvious breakage of various drivers. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
5b1d221e62
commit
86384d5441
1 changed files with 1 additions and 3 deletions
|
@ -109,9 +109,6 @@ SECTIONS
|
||||||
.con_initcall.init : { *(.con_initcall.init) }
|
.con_initcall.init : { *(.con_initcall.init) }
|
||||||
__con_initcall_end = .;
|
__con_initcall_end = .;
|
||||||
SECURITY_INIT
|
SECURITY_INIT
|
||||||
/* .exit.text is discarded at runtime, not link time, to deal with
|
|
||||||
references from .rodata */
|
|
||||||
.exit.text : { *(.exit.text) }
|
|
||||||
. = ALIGN(_PAGE_SIZE);
|
. = ALIGN(_PAGE_SIZE);
|
||||||
__initramfs_start = .;
|
__initramfs_start = .;
|
||||||
.init.ramfs : { *(.init.ramfs) }
|
.init.ramfs : { *(.init.ramfs) }
|
||||||
|
@ -139,6 +136,7 @@ SECTIONS
|
||||||
|
|
||||||
/* Sections to be discarded */
|
/* Sections to be discarded */
|
||||||
/DISCARD/ : {
|
/DISCARD/ : {
|
||||||
|
*(.exit.text)
|
||||||
*(.exit.data)
|
*(.exit.data)
|
||||||
*(.exitcall.exit)
|
*(.exitcall.exit)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue