1 OUTPUT_FORMAT("coff-shl") 2 OUTPUT_ARCH(sh) 3 MEMORY 4 { 5 ram : o = 0x8C010000, l = 16M 6 } 7 SECTIONS 8 { 9 ROM = 0x80010000; 10 11 .text : 12 AT (ROM) 13 { 14 *(.text) 15 *(.strings) 16 _etext = . ; 17 } > ram 18 .tors : 19 AT ( ROM + SIZEOF(.text)) 20 { 21 ___ctors = . ; 22 *(.ctors) 23 ___ctors_end = . ; 24 ___dtors = . ; 25 *(.dtors) 26 ___dtors_end = . ; 27 } > ram 28 .data : 29 AT ( ROM + SIZEOF(.text) + SIZEOF(.tors)) 30 { 31 *(.data) 32 _edata = . ; 33 } > ram 34 .bss : 35 AT ( ROM + SIZEOF(.text) + SIZEOF(.tors) + SIZEOF(.data)) 36 { 37 _bss_start = . ; 38 *(.bss) 39 *(COMMON) 40 _end = . ; 41 } > ram 42 .stack : 43 { 44 _stack = . ; 45 *(.stack) 46 } > ram 47 .stab 0 (NOLOAD) : 48 { 49 *(.stab) 50 } 51 .stabstr 0 (NOLOAD) : 52 { 53 *(.stabstr) 54 } 55 } 56