2024-03-21 06:46:08 +00:00
|
|
|
RAMBASE = 0x80801000; /* Used to hold any new symbols */
|
2024-03-21 02:16:51 +00:00
|
|
|
EXTRA_RAM_SIZE = 0x01000000; /* Amount of extra ram allocated by recomp */
|
2023-11-11 22:42:07 +00:00
|
|
|
|
|
|
|
MEMORY {
|
2024-03-21 02:16:51 +00:00
|
|
|
extram : ORIGIN = RAMBASE, LENGTH = 64M
|
|
|
|
rom : ORIGIN = 0, LENGTH = 64M
|
2023-11-11 22:42:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS {
|
|
|
|
.ctors : { *(.ctors*) *(.init_array*) } >extram AT >rom
|
|
|
|
.dtors : { *(.dtors*) } >extram AT >rom
|
2024-06-29 01:22:50 +00:00
|
|
|
.text : { *(.text*) } >extram AT >rom
|
2023-11-11 22:42:07 +00:00
|
|
|
.rodata : { *(.rodata*) } >extram AT >rom
|
|
|
|
.data : { *(.data*) } >extram AT >rom
|
2024-06-29 01:22:50 +00:00
|
|
|
.bss (NOLOAD) : { *(.bss*) *(COMMON) } >extram
|
2024-03-21 02:16:51 +00:00
|
|
|
ASSERT(. < RAMBASE + EXTRA_RAM_SIZE, "Maxed out recomp extra ram")
|
2023-11-11 22:42:07 +00:00
|
|
|
|
2024-06-28 06:34:39 +00:00
|
|
|
.reloc 0 : { *(.reloc*) }
|
2023-11-11 22:42:07 +00:00
|
|
|
.symtab 0 : { *(.symtab) }
|
|
|
|
.strtab 0 : { *(.strtab) }
|
|
|
|
.shstrtab 0 : { *(.shstrtab) }
|
|
|
|
|
|
|
|
/DISCARD/ : { *(*); }
|
|
|
|
}
|