summaryrefslogtreecommitdiff
path: root/scripts/module-common.lds
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/module-common.lds')
-rw-r--r--scripts/module-common.lds8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/module-common.lds b/scripts/module-common.lds
new file mode 100644
index 000000000000..47a1f9ae0ede
--- /dev/null
+++ b/scripts/module-common.lds
@@ -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) }
+}