138032SpeterTEMPLATE_NAME=elf32 238032SpeterSCRIPT_NAME=elf 364562SgshapiroOUTPUT_FORMAT="elf32-bigmips" 464562SgshapiroBIG_OUTPUT_FORMAT="elf32-bigmips" 538032SpeterLITTLE_OUTPUT_FORMAT="elf32-littlemips" 638032SpeterARCH=mips 738032SpeterMACHINE= 838032SpeterEMBEDDED=yes 938032SpeterMAXPAGESIZE=0x40000 1038032Speter 1138032Speter# The data below is taken from the windiss.dld linker script that comes with 1238032Speter# the Diab linker. 1338032SpeterTEXT_START_ADDR=0x100000 1438032SpeterDATA_START_SYMBOLS='__DATA_ROM = .; __DATA_RAM = .;' 1538032SpeterSDATA_START_SYMBOLS='_SDA_BASE_ = .; _gp = . + 0x7ff0;' 1638032SpeterSDATA2_START_SYMBOLS='_SDA2_BASE_ = .;' 1738032SpeterEXECUTABLE_SYMBOLS='__HEAP_START = .; __SP_INIT = 0x800000; __SP_END = __SP_INIT - 0x20000; __HEAP_END = __SP_END; __DATA_END = _edata; __BSS_START = __bss_start; __BSS_END = _end; __HEAP_START = _end;' 1838032Speter 1938032Speter# The Diab tools use a different init/fini convention. Initialization code 2038032Speter# is place in sections named ".init$NN". These sections are then concatenated 2138032Speter# into the .init section. It is important that .init$00 be first and .init$99 2238032Speter# be last. The other sections should be sorted, but the current linker script 2338032Speter# parse does not seem to allow that with the SORT keyword in this context. 2438032SpeterINIT_START='*(.init$00); *(.init$0[1-9]); *(.init$[1-8][0-9]); *(.init$9[0-8])' 2538032SpeterINIT_END='*(.init$99)' 2664562SgshapiroFINI_START='*(.fini$00); *(.fini$0[1-9]); *(.fini$[1-8][0-9]); *(.fini$9[0-8])' 2738032SpeterFINI_END='*(.fini$99)' 2838032Speter