/* Rumpk Linker Script (RISC-V 64) */
/* For QEMU virt machine (RAM starts at 0x80000000) */

ENTRY(_start)

SECTIONS
{
    . = 0x80200000;  /* QEMU/OpenSBI load address */

    .text : {
        *(.text._start)
        *(.text*)
    }

    .rodata : {
        *(.rodata*)
    }

    .data : {
        *(.data*)
    }

    .bss : {
        __bss_start = .;
        *(.bss*)
        *(COMMON)
        __bss_end = .;
    }

    /DISCARD/ : {
        *(.comment)
        *(.note*)
        *(.eh_frame*)
    }
}
