diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-12-10 15:57:28 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-12-10 22:52:11 +0100 |
commit | 86384d544157db23879064cde36061cdcafc6794 (patch) | |
tree | ead5f75f9b89f979d2e58c8e43e0dd2fa4f5838e /arch/mips | |
parent | [MIPS] Fix build of several IDE drivers by providing pci_get_legacy_ide_irq (diff) | |
download | linux-86384d544157db23879064cde36061cdcafc6794.tar.xz linux-86384d544157db23879064cde36061cdcafc6794.zip |
[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')
-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 .con_initcall.init : { *(.con_initcall.init) } __con_initcall_end = .; SECURITY_INIT - /* .exit.text is discarded at runtime, not link time, to deal with - references from .rodata */ - .exit.text : { *(.exit.text) } . = ALIGN(_PAGE_SIZE); __initramfs_start = .; .init.ramfs : { *(.init.ramfs) } @@ -139,6 +136,7 @@ SECTIONS /* Sections to be discarded */ /DISCARD/ : { + *(.exit.text) *(.exit.data) *(.exitcall.exit) |