summaryrefslogtreecommitdiff
path: root/sys/modules/xldscripts/kmodule
diff options
context:
space:
mode:
authorskrll <skrll@NetBSD.org>2009-11-10 14:47:52 +0000
committerskrll <skrll@NetBSD.org>2009-11-10 14:47:52 +0000
commit25edd46c0c41f027400f277a18da202e0c829ba6 (patch)
tree31235ea600ecd7b87f0520df02b2343982d289ad /sys/modules/xldscripts/kmodule
parent4587969773acf8bfee23fcd97e41d567f580d65b (diff)
Move the kmodule linker script source into sys/modules/xldscripts. It is
not part of binutils and definitely not GPL v3. Discussed with mrg.
Diffstat (limited to 'sys/modules/xldscripts/kmodule')
-rw-r--r--sys/modules/xldscripts/kmodule19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/modules/xldscripts/kmodule b/sys/modules/xldscripts/kmodule
new file mode 100644
index 00000000000..3b270c223d6
--- /dev/null
+++ b/sys/modules/xldscripts/kmodule
@@ -0,0 +1,19 @@
+/* $NetBSD: kmodule,v 1.1 2009/11/10 14:47:52 skrll Exp $ */
+
+SECTIONS
+{
+ /* Pre-loaded modules must have merged BSS and data. */
+ .data 0 :
+ {
+ *(.data)
+ *(.data.*)
+ *(.bss)
+ *(.bss.*)
+ *(COMMON)
+ }
+ /* Pre-loaded modules do not need the following. */
+ /DISCARD/ :
+ {
+ *(.comment)
+ }
+}