diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-08-19 22:58:57 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-08-19 22:58:57 +0300 |
| commit | 1175179058fa809c57d724cd2043c67edc511695 (patch) | |
| tree | fd01aba45ff6e4c676bac5c369b8f4983163c800 /arch/riscv/riscv-link.S | |
| parent | 565724db3b73ee67fa996dab511dc52df586cee1 (diff) | |
| download | kmi-1175179058fa809c57d724cd2043c67edc511695.tar.gz kmi-1175179058fa809c57d724cd2043c67edc511695.zip | |
New build system (WIP)
Diffstat (limited to 'arch/riscv/riscv-link.S')
| -rw-r--r-- | arch/riscv/riscv-link.S | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/riscv/riscv-link.S b/arch/riscv/riscv-link.S index ffdf590..0950850 100644 --- a/arch/riscv/riscv-link.S +++ b/arch/riscv/riscv-link.S @@ -1,20 +1,22 @@ +#include <apos/link.lds.h> #include <vmap.h> OUTPUT_ARCH(riscv) ENTRY(_start) SECTIONS { - . = 0; /* no offset */ - .init : { + . = ABSOLUTE(PM_KERN); + .init ALIGN(4K) : AT(0) { *(.init.start); *(.init.text); *(.init.data); . = ALIGN(4K); } - .text ALIGN(VM_KERN) : AT(ADDR(.init) + SIZEOF(.init)) { - *(.init.start); + . = ABSOLUTE(VM_KERN); + .text ALIGN(4K) : AT(SIZEOF(.init)) { *(.text.start); - *(.text); + *(.text.text); + *(.text.data); } } |
