linker script: throw away .discard section
[cascardo/linux.git] / scripts / module-common.lds
diff --git a/scripts/module-common.lds b/scripts/module-common.lds
new file mode 100644 (file)
index 0000000..47a1f9a
--- /dev/null
@@ -0,0 +1,8 @@
+/*
+ * Common module linker script, always used when linking a module.
+ * Archs are free to supply their own linker scripts.  ld will
+ * combine them automatically.
+ */
+SECTIONS {
+       /DISCARD/ : { *(.discard) }
+}