2023-11-02 03:57:19 -04:00
|
|
|
_stack_size = 0x80000;
|
|
|
|
_heap_size = 1024*1024*10;
|
|
|
|
|
2023-11-06 06:36:49 -05:00
|
|
|
_text_origin = 0xbfc00000;
|
|
|
|
|
2023-11-02 03:57:19 -04:00
|
|
|
ENTRY(_start);
|
|
|
|
SECTIONS {
|
2023-11-06 06:36:49 -05:00
|
|
|
. = 0xbfc00000;
|
|
|
|
|
|
|
|
.text : {
|
|
|
|
*rom_start.o /* Always link reset as the first object */
|
|
|
|
|
|
|
|
*(libps2rom_ee_*.a)
|
|
|
|
*(libps2rom_iop_*.a)
|
2023-11-02 03:57:19 -04:00
|
|
|
|
|
|
|
*(.text)
|
|
|
|
*(.rodata)
|
2023-11-06 06:36:49 -05:00
|
|
|
*(.rodata.*)
|
2023-11-02 03:57:19 -04:00
|
|
|
}
|
|
|
|
_text_size = . - _text_origin;
|
|
|
|
|
|
|
|
.reginfo ALIGN(128) : {
|
|
|
|
*(.reginfo)
|
|
|
|
}
|
|
|
|
|
|
|
|
.data ALIGN(128) : {
|
|
|
|
_data_origin = .;
|
|
|
|
*(.data)
|
|
|
|
}
|
|
|
|
|
|
|
|
.rdata ALIGN(128) : {
|
|
|
|
*(.rdata)
|
|
|
|
}
|
|
|
|
|
|
|
|
_data_size = . - _data_origin;
|
|
|
|
|
|
|
|
_gp = ALIGN(128) + 0x7ff0;
|
2023-11-06 02:07:09 -05:00
|
|
|
|
2023-11-02 03:57:19 -04:00
|
|
|
.lit4 ALIGN(128) : {
|
|
|
|
*(.lit4)
|
|
|
|
}
|
2023-11-06 02:07:09 -05:00
|
|
|
|
2023-11-02 03:57:19 -04:00
|
|
|
.lit8 ALIGN(128) : {
|
|
|
|
*(.lit8)
|
|
|
|
}
|
2023-11-06 02:07:09 -05:00
|
|
|
|
2023-11-02 03:57:19 -04:00
|
|
|
.sdata ALIGN(128) : {
|
|
|
|
*(.sdata)
|
|
|
|
}
|
|
|
|
|
|
|
|
.sbss ALIGN(128) (NOLOAD) : { /* uninitialized data */
|
|
|
|
_fbss = . ;
|
|
|
|
*(.scommon)
|
|
|
|
*(.sbss)
|
|
|
|
}
|
|
|
|
|
|
|
|
.bss ALIGN(128) (NOLOAD) : { /* uninitialized data */
|
|
|
|
*(.bss)
|
|
|
|
}
|
|
|
|
|
|
|
|
.COMMON ALIGN(128) (NOLOAD) : { /* uninitialized data */
|
|
|
|
*(COMMON)
|
|
|
|
}
|
|
|
|
|
|
|
|
_bss_size = . - _fbss;
|
|
|
|
|
|
|
|
_end_bss = . - 4;
|
|
|
|
_stack = .;
|
|
|
|
. += _stack_size ;
|
|
|
|
_end_stack = . - 8*5;
|
|
|
|
_end = . ;
|
|
|
|
__lc_bh = . ;
|
|
|
|
. += _heap_size ;
|
|
|
|
__lc_eh = .;
|
|
|
|
|
|
|
|
}
|