diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-12-10 09:57:28 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-12-10 16:52:11 -0500 |
commit | 86384d544157db23879064cde36061cdcafc6794 (patch) | |
tree | ead5f75f9b89f979d2e58c8e43e0dd2fa4f5838e /arch/mips/kernel/vmlinux.lds.S | |
parent | 5b1d221e6292f9fcf9f12d6c9e94ee9470ee2a24 (diff) |
[MIPS] Discard .exit.text at linktime.
This fixes fairly unobvious breakage of various drivers.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/mips/kernel/vmlinux.lds.S | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S index 79f0317d84ac..2f4508f55fca 100644 --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S | |||
@@ -109,9 +109,6 @@ 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 | . = ALIGN(_PAGE_SIZE); | 112 | . = ALIGN(_PAGE_SIZE); |
116 | __initramfs_start = .; | 113 | __initramfs_start = .; |
117 | .init.ramfs : { *(.init.ramfs) } | 114 | .init.ramfs : { *(.init.ramfs) } |
@@ -139,6 +136,7 @@ SECTIONS | |||
139 | 136 | ||
140 | /* Sections to be discarded */ | 137 | /* Sections to be discarded */ |
141 | /DISCARD/ : { | 138 | /DISCARD/ : { |
139 | *(.exit.text) | ||
142 | *(.exit.data) | 140 | *(.exit.data) |
143 | *(.exitcall.exit) | 141 | *(.exitcall.exit) |
144 | 142 | ||