diff options
Diffstat (limited to 'arch/riscv/kernel-link.S')
| -rw-r--r-- | arch/riscv/kernel-link.S | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/riscv/kernel-link.S b/arch/riscv/kernel-link.S new file mode 100644 index 0000000..873c7de --- /dev/null +++ b/arch/riscv/kernel-link.S @@ -0,0 +1,14 @@ +#include <apos/link.lds.h> +#include <vmap.h> + +OUTPUT_ARCH(riscv) +ENTRY(main) + +SECTIONS { + . = ABSOLUTE(VM_KERN); + .text ALIGN(4K) : AT(0) { + *(.text.start); + *(.text); + . = ALIGN(4K); + } +} |
