summaryrefslogtreecommitdiff
path: root/modules/foo/foo.ld
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-01-20 22:10:14 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-01-20 22:10:14 +0100
commitbfa24f7e97eebd26561d87bbab643a9825e93392 (patch)
tree7ad08394088a0e4b7d51e0f75bdb963e4b9204ee /modules/foo/foo.ld
parentc9961af38885b92a86e61e54286c2e60b1585359 (diff)
Added foo-module.
Diffstat (limited to 'modules/foo/foo.ld')
-rw-r--r--modules/foo/foo.ld25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/foo/foo.ld b/modules/foo/foo.ld
new file mode 100644
index 0000000..cea3a32
--- /dev/null
+++ b/modules/foo/foo.ld
@@ -0,0 +1,25 @@
+OUTPUT_ARCH("i386")
+OUTPUT_FORMAT("binary")
+ENTRY(entry)
+
+addr_phys = 0x0010a000;
+
+SECTIONS {
+ .text addr_phys : {
+ *(.text)
+ *(.rodata*)
+ }
+
+ . = ALIGN(0x1000);
+ .data : {
+ *(.data)
+ *(.ctors)
+ }
+
+ . = ALIGN(0x1000);
+ .bss : {
+ *(.bss)
+ *(COMMON)
+ }
+
+}