patch-2.4.0-test5 linux/arch/sh/vmlinux.lds.S
Next file: linux/arch/sparc/Makefile
Previous file: linux/arch/sh/mm/init.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Fri Jul 21 14:21:06 2000
- Orig file:
v2.4.0-test4/linux/arch/sh/vmlinux.lds.S
- Orig date:
Fri Jun 23 21:55:08 2000
diff -u --recursive --new-file v2.4.0-test4/linux/arch/sh/vmlinux.lds.S linux/arch/sh/vmlinux.lds.S
@@ -3,7 +3,7 @@
* Written by Niibe Yutaka
*/
#include <linux/config.h>
-#ifdef CONFIG_LITTLE_ENDIAN
+#ifdef CONFIG_CPU_LITTLE_ENDIAN
OUTPUT_FORMAT("elf32-shl", "elf32-shl", "elf32-shl")
#else
OUTPUT_FORMAT("elf32-sh", "elf32-sh", "elf32-sh")
@@ -77,6 +77,16 @@
}
. = ALIGN(4);
_end = . ;
+
+ /* When something in the kernel is NOT compiled as a module, the
+ * module cleanup code and data are put into these segments. Both
+ * can then be thrown away, as cleanup code is never called unless
+ * it's a module.
+ */
+ /DISCARD/ : {
+ *(.text.exit)
+ *(.data.exit)
+ }
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)