2023-11-11 23:42:07 +01:00
|
|
|
RAMBASE = 0x80800100; /* Used to hold any new symbols */
|
|
|
|
|
|
|
|
MEMORY {
|
2024-02-24 22:13:39 +01:00
|
|
|
extram : ORIGIN = RAMBASE, LENGTH = 8M
|
2023-11-11 23:42:07 +01:00
|
|
|
rom : ORIGIN = 0, LENGTH = 1M
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS {
|
|
|
|
.text : { *(.text*) } >extram AT >rom
|
|
|
|
.ctors : { *(.ctors*) *(.init_array*) } >extram AT >rom
|
|
|
|
.dtors : { *(.dtors*) } >extram AT >rom
|
|
|
|
.rodata : { *(.rodata*) } >extram AT >rom
|
|
|
|
.data : { *(.data*) } >extram AT >rom
|
|
|
|
.bss (NOLOAD) : { *(.bss*) *(COMMON) } >extram
|
|
|
|
|
|
|
|
.symtab 0 : { *(.symtab) }
|
|
|
|
.strtab 0 : { *(.strtab) }
|
|
|
|
.shstrtab 0 : { *(.shstrtab) }
|
|
|
|
|
|
|
|
/DISCARD/ : { *(*); }
|
|
|
|
}
|