]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[MIPS] Discard .exit.text at linktime.
authorRalf Baechle <ralf@linux-mips.org>
Sun, 10 Dec 2006 14:57:28 +0000 (14:57 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 10 Dec 2006 21:52:11 +0000 (21:52 +0000)
This fixes fairly unobvious breakage of various drivers.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/vmlinux.lds.S

index 79f0317d84ac6fa2fa99fcc02a916acac335f396..2f4508f55fcaf2673ecceaa7f061177825c5dcac 100644 (file)
@@ -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)