OUTPUT_ARCH("mips:isa32") OUTPUT_FORMAT("elf32-littlemips") ENTRY(_start) TARGET("elf32-littlemips") GROUP(-lc -lm -lelcore-mc12 -lelcore-common -lgcc) SEARCH_DIR(.) PROVIDE(_mem_size = 0x100000); /* 1Mb of total memory */ PROVIDE(hardware_init_hook = 0); PROVIDE(software_init_hook = 0); SECTIONS { . = 0xbfc00000; . += 0x1000; .text : { *(.init) *(.text) *(.rel.sdata) *(.fini)} .rdata : { *(.reginfo) *(.rdata) } .data : { *(.data) } . += 0x10000; _gp = ALIGN(16); .lit4 : { *(.lit4) } .sdata : { *(.sdata) } .rodata : { *(rodata) } . = ALIGN(8); PROVIDE (edata = .); _edata = .; _fbss = .; .sbss : { *(.sbss) *(.scommon) *(*ABS*)} .bss : { _bss_start = .; *(.bss); *(COMMON) } . += 0x8000; /* 32kb of stack */ PROVIDE(__stack = ALIGN(8));/* top of stack */ . += 0x10; PROVIDE(end = .); _end = .; .dspdata 0xb8400000 : { _dspdata = .; *(.dspdata); _dspedata = .; } .dspbss ADDR(.dspdata)+SIZEOF(.dspdata) : { _dspbss = .; *(.dspbss); _dspebss = .; } .dsptext 0xb8440000: { _dsptext = .; *(.dsptext); _dspetext = .; } }