summaryrefslogtreecommitdiff
path: root/os/linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'os/linker.ld')
-rw-r--r--os/linker.ld23
1 files changed, 23 insertions, 0 deletions
diff --git a/os/linker.ld b/os/linker.ld
new file mode 100644
index 0000000..d74f640
--- /dev/null
+++ b/os/linker.ld
@@ -0,0 +1,23 @@
+ENTRY(kstart);
+
+MEMORY {
+ ram (wxa) : ORIGIN = 0x80000000, LENGTH = 128M
+}
+
+PHDRS {
+ text PT_LOAD;
+ rodata PT_LOAD;
+}
+
+SECTIONS {
+ .text : ALIGN(4K) {
+ *(.init);
+ *(.text);
+ } >ram AT>ram :text
+
+ .rodata : ALIGN(4K) {
+ *(.rodata);
+ } >ram AT>ram :rodata
+}
+
+ # @Todo .bss (clear), .data, etc