2024-03-21 07:46:08 +01:00
|
|
|
RAMBASE = 0x80801000; /* Used to hold any new symbols */
|
2024-09-02 18:01:22 +02:00
|
|
|
PATCH_RAM_END = 0x81000000; /* Amount of extra ram allocated by recomp */
|
2023-11-11 23:42:07 +01:00
|
|
|
|
|
|
|
MEMORY {
|
2024-03-21 03:16:51 +01:00
|
|
|
extram : ORIGIN = RAMBASE, LENGTH = 64M
|
|
|
|
rom : ORIGIN = 0, LENGTH = 64M
|
2023-11-11 23:42:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS {
|
2024-07-26 04:17:00 +02:00
|
|
|
.ctors : { *(.ctors*) *(.init_array*) } >extram AT >rom
|
|
|
|
.dtors : { *(.dtors*) } >extram AT >rom
|
|
|
|
.text : { *(.text*) } >extram AT >rom
|
|
|
|
.recomp_patch : { *(.recomp_patch*) *(.recomp_force_patch*) } >extram AT >rom
|
|
|
|
.recomp_export : { *(.recomp_export*) } >extram AT >rom
|
2024-09-02 18:01:22 +02:00
|
|
|
.recomp_event : { *(.recomp_event*) } >extram AT >rom
|
2024-07-26 04:17:00 +02:00
|
|
|
.rodata : { *(.rodata*) } >extram AT >rom
|
|
|
|
.data : { *(.data*) } >extram AT >rom
|
|
|
|
.bss (NOLOAD) : { *(.bss*) *(COMMON) } >extram
|
2024-09-02 18:01:22 +02:00
|
|
|
ASSERT(. <= PATCH_RAM_END, "Maxed out recomp extra ram")
|
2023-11-11 23:42:07 +01:00
|
|
|
|
2024-07-05 22:33:34 +02:00
|
|
|
.reloc 0 : { *(.reloc*) }
|
2023-11-11 23:42:07 +01:00
|
|
|
.symtab 0 : { *(.symtab) }
|
|
|
|
.strtab 0 : { *(.strtab) }
|
|
|
|
.shstrtab 0 : { *(.shstrtab) }
|
|
|
|
|
|
|
|
/DISCARD/ : { *(*); }
|
|
|
|
}
|