MEMORY { SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 1024 DRAM (rwx) : ORIGIN = 0x80000000, LENGTH = 1024 } SECTIONS { .text : { main.o(.text.*) *(.text) . = ALIGN(4); } > DRAM .data : { *(.data) . = ALIGN(4); } > DRAM AT > SRAM .bss : { *(.bss) . = ALIGN(4); } > DRAM /DISCARD/ : { *(.riscv.attributes) } }