summaryrefslogtreecommitdiff
path: root/modules/foo/foo.ld
diff options
context:
space:
mode:
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)
+ }
+
+}