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