/* riscv-tests image: everything from address 0 (the core's reset vector); tests/nmi.S puts its NMI handler at 8000h, tb_cpu.v's NMI_VEC. */ OUTPUT_ARCH( "riscv" ) ENTRY(_start) SECTIONS { . = 0x0; .text.init : { *(.text.init) } . = ALIGN(0x1000); .tohost : { *(.tohost) } . = ALIGN(0x1000); .text : { *(.text) } . = ALIGN(0x1000); .data : { *(.data) } .bss : { *(.bss) } . = 0x8000; .nmi : { KEEP(*(.nmi)) } _end = .; }