Files
acrn-hypervisor/hypervisor/arch/riscv/link_ram.ld.in
Yifan Liu 1a2d5b9eed hv: riscv: Add riscv build skeleton and hello world binary
This commit adds riscv build skeleton and adds some dummy files that
prints out hello world.

To build riscv acrn.out/acrn.bin, simply:

make hypervisor \
    BOARD=<any existing board> \
    SCENARIO=<any existing scenario> \
    ARCH=riscv

We still need to specify board and scenario as those were required by
project level makefile.

Tracked-On: #8782
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
2025-09-03 14:41:33 +08:00

39 lines
558 B
Plaintext

ENTRY(_start)
MEMORY {
RAM : ORIGIN = 0x81000000, LENGTH = 64K
}
SECTIONS {
/* TODO: Replace hardcodes with macros defined in config header */
. = 0x81000000;
.text : {
*(.text)
*(.text.*)
*(.note.gnu.build-id)
} > RAM
.rodata : {
*(.rodata)
*(.rodata.*)
} > RAM
.data : {
*(.data)
*(.data.*)
} > RAM
.bss (NOLOAD) : {
*(.bss)
*(.bss.*)
*(COMMON)
} > RAM
. = ALIGN(8);
_end = .;
. = 0x81010000;
_stack_top = .;
}