diff options
author | Christian Cunningham <cc@localhost> | 2021-08-31 08:31:10 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2021-08-31 08:33:05 -0700 |
commit | 20fa8584e31d55b7f2953f917adcc190adab236f (patch) | |
tree | e46eb99ea64e993ed5f5c2648853941d9db9c4a4 /linker.ld |
Initial Commit
Diffstat (limited to 'linker.ld')
-rw-r--r-- | linker.ld | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/linker.ld b/linker.ld new file mode 100644 index 0000000..5c1b1a5 --- /dev/null +++ b/linker.ld @@ -0,0 +1,34 @@ +ENTRY(_start) + +SECTIONS +{ + /* Starts at LOADER_ADDR. */ + . = 0x8000; + __start = .; + __text_start = .; + .text : + { + KEEP(*(.text.boot)) + *(.text) + } + . = ALIGN(4096); /* align to page size */ + __text_end = .; + + __data_start = .; + .data : + { + *(.data) + } + . = ALIGN(4096); /* align to page size */ + __data_end = .; + + __bss_start = .; + .bss : + { + bss = .; + *(.bss) + } + . = ALIGN(4096); /* align to page size */ + __bss_end = .; + __end = .; +} |