4 ms·
Good fun, but the command for the linker step is missing. For those following along (like me): 1. Save the linker script as hello.ld 2. Run 'riscv64-linux-gnu
by kitd 9mo ago
Good fun, but the command for the linker step is missing. For those following along (like me):
1. Save the linker script as hello.ld
2. Run 'riscv64-linux-gnu-ld -T hello.ld --no-dynamic-linker -m elf64lriscv -static -nostdlib -s -o hello hello.o' to generate the binary.
You can now run objdump to view the elf.