patch-2.4.0-test4 linux/arch/mips/ld.script.little

Next file: linux/arch/mips/orion/Makefile
Previous file: linux/arch/mips/ld.script.big
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test3/linux/arch/mips/ld.script.little linux/arch/mips/ld.script.little
@@ -91,6 +91,15 @@
   _end = . ;
   PROVIDE (end = .);
   }
+
+  /* Sections to be discarded */
+  /DISCARD/ : 
+  {
+        *(.text.exit)
+        *(.data.exit)
+        *(.exitcall.exit)
+  }
+
   /* These are needed for ELF backends which have not yet been
      converted to the new style linker.  */
   .stab 0 : { *(.stab) }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)