From 565724db3b73ee67fa996dab511dc52df586cee1 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 17 Aug 2021 21:47:38 +0300 Subject: Garbage --- arch/riscv/riscv-link.S | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 arch/riscv/riscv-link.S (limited to 'arch/riscv/riscv-link.S') diff --git a/arch/riscv/riscv-link.S b/arch/riscv/riscv-link.S new file mode 100644 index 0000000..ffdf590 --- /dev/null +++ b/arch/riscv/riscv-link.S @@ -0,0 +1,20 @@ +#include + +OUTPUT_ARCH(riscv) +ENTRY(_start) + +SECTIONS { + . = 0; /* no offset */ + .init : { + *(.init.start); + *(.init.text); + *(.init.data); + . = ALIGN(4K); + } + + .text ALIGN(VM_KERN) : AT(ADDR(.init) + SIZEOF(.init)) { + *(.init.start); + *(.text.start); + *(.text); + } +} -- cgit v1.3