Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-riscv-elf/code-model-02.ld
2023-03-06 14:48:14 +01:00

24 lines
342 B
Text

/* text: over the 32-bit address range.
data: far away from text, and nearly-zero. */
ENTRY(_start)
MEMORY
{
rom (rx) : ORIGIN = 0x800000000, LENGTH = 0x1000
ram (!rx) : ORIGIN = 0x10, LENGTH = 0x1000
}
SECTIONS {
.text : {
*(.text*)
} >rom
.data : {
*(.data*)
} >ram
__global_pointer$ = .;
.got : {
*(.got*)
} > ram
}