diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-05-13 12:21:59 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-05-13 12:21:59 +0200 |
commit | 9160f2912eb57910e45b681b7b5eef9acb6a922e (patch) | |
tree | 2ec20d782cd5a05a2bebe2f6756456f1d4caa4d9 /os/linker.ld | |
parent | f95a85de0082010e4af83e26e99299d601bb48d6 (diff) |
Diffstat (limited to 'os/linker.ld')
-rw-r--r-- | os/linker.ld | 23 |
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
|