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/init-link.S | |
| parent | 565724db3b73ee67fa996dab511dc52df586cee1 (diff) | |
| download | kmi-1175179058fa809c57d724cd2043c67edc511695.tar.gz kmi-1175179058fa809c57d724cd2043c67edc511695.zip | |
New build system (WIP)
Diffstat (limited to 'arch/riscv/init-link.S')
| -rw-r--r-- | arch/riscv/init-link.S | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/riscv/init-link.S b/arch/riscv/init-link.S new file mode 100644 index 0000000..db18822 --- /dev/null +++ b/arch/riscv/init-link.S @@ -0,0 +1,14 @@ +#include <apos/link.lds.h> +#include <vmap.h> + +OUTPUT_ARCH(riscv) +ENTRY(_start) + +SECTIONS { + . = ABSOLUTE(PM_KERN); + .text ALIGN(4K) : AT(0) { + *(.init.start) + *(.text); + . = ALIGN(4K); + } +} |
