mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-22 22:19:14 +01:00
50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
MEMORY {
|
|
rdram (rwx) : org = 0x803E0000, len = 128k
|
|
flash (r) : org = 0xB0000000, len = 64k
|
|
}
|
|
|
|
ENTRY(entry_handler)
|
|
|
|
__exception_stack_size = 8k;
|
|
__stack_size = 16k;
|
|
|
|
SECTIONS {
|
|
.flash : {
|
|
KEEP(*(.text.rom_header));
|
|
KEEP(*(.text.ipl3));
|
|
} > flash
|
|
|
|
.text : {
|
|
*(.text.entry_handler)
|
|
*(.text .text.* .gnu.linkonce.t.*)
|
|
*(.rodata .rodata.* .gnu.linkonce.r.*)
|
|
*(.data .data.* .gnu.linkonce.d.*)
|
|
_gp = . + 0x8000;
|
|
*(.sdata .sdata.* .gnu.linkonce.s.*)
|
|
*(.lit8 .lit4)
|
|
. = ALIGN(8);
|
|
} > rdram AT > flash
|
|
|
|
.bss : {
|
|
*(.sbss .sbss.* .gnu.linkonce.sb.*)
|
|
*(.scommon .scommon.*)
|
|
*(.bss .bss.* .gnu.linkonce.b.*)
|
|
*(COMMON)
|
|
. = ALIGN(8);
|
|
} > rdram
|
|
|
|
_sheap = .;
|
|
. = ORIGIN(rdram) + LENGTH(rdram) - __exception_stack_size - __stack_size;
|
|
_eheap = .;
|
|
|
|
. += __exception_stack_size;
|
|
_esp = .;
|
|
|
|
. += __stack_size;
|
|
_sp = .;
|
|
|
|
/DISCARD/ : {
|
|
*(.MIPS.*)
|
|
}
|
|
}
|