/* Memory Layout (64MB Userspace):
 * User RAM: 0x86000000 - 0x89FFFFFF (64MB)
 * Stack starts at 0x89FFFFF0 and grows down
 * Requires QEMU -m 256M to ensure valid physical backing
 */
MEMORY
{
    RAM (rwx) : ORIGIN = 0x86000000, LENGTH = 64M
}

SECTIONS
{
    . = 0x86000000;

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

    .rodata : {
        *(.rodata)
        *(.rodata.*)
    } > RAM

    .data : {
        *(.data)
        *(.data.*)
    } > RAM

    .bss : {
        *(.bss)
        *(.bss.*)
        *(COMMON)
    } > RAM
}
