1*3d8817e4SmiodTORS=".tors : 2*3d8817e4Smiod { 3*3d8817e4Smiod ___ctors = . ; 4*3d8817e4Smiod *(.ctors) 5*3d8817e4Smiod ___ctors_end = . ; 6*3d8817e4Smiod ___dtors = . ; 7*3d8817e4Smiod *(.dtors) 8*3d8817e4Smiod ___dtors_end = . ; 9*3d8817e4Smiod } > ram" 10*3d8817e4Smiod 11*3d8817e4Smiodcat <<EOF 12*3d8817e4SmiodOUTPUT_FORMAT("${OUTPUT_FORMAT}") 13*3d8817e4SmiodOUTPUT_ARCH(${ARCH}) 14*3d8817e4Smiod 15*3d8817e4SmiodMEMORY 16*3d8817e4Smiod{ 17*3d8817e4Smiod ram : o = 0x1000, l = 512k 18*3d8817e4Smiod} 19*3d8817e4Smiod 20*3d8817e4SmiodSECTIONS 21*3d8817e4Smiod{ 22*3d8817e4Smiod .text : 23*3d8817e4Smiod { 24*3d8817e4Smiod *(.text) 25*3d8817e4Smiod *(.strings) 26*3d8817e4Smiod ${RELOCATING+ _etext = . ; } 27*3d8817e4Smiod } ${RELOCATING+ > ram} 28*3d8817e4Smiod ${CONSTRUCTING+${TORS}} 29*3d8817e4Smiod .data : 30*3d8817e4Smiod { 31*3d8817e4Smiod *(.data) 32*3d8817e4Smiod ${RELOCATING+*(.gcc_exc*)} 33*3d8817e4Smiod ${RELOCATING+___EH_FRAME_BEGIN__ = . ;} 34*3d8817e4Smiod ${RELOCATING+*(.eh_fram*)} 35*3d8817e4Smiod ${RELOCATING+___EH_FRAME_END__ = . ;} 36*3d8817e4Smiod ${RELOCATING+LONG(0);} 37*3d8817e4Smiod ${RELOCATING+ _edata = . ; } 38*3d8817e4Smiod } ${RELOCATING+ > ram} 39*3d8817e4Smiod .bss : 40*3d8817e4Smiod { 41*3d8817e4Smiod ${RELOCATING+ _bss_start = . ; } 42*3d8817e4Smiod *(.bss) 43*3d8817e4Smiod *(COMMON) 44*3d8817e4Smiod ${RELOCATING+ _end = . ; } 45*3d8817e4Smiod } ${RELOCATING+ > ram} 46*3d8817e4Smiod .stack ${RELOCATING+ 0x30000 } : 47*3d8817e4Smiod { 48*3d8817e4Smiod ${RELOCATING+ _stack = . ; } 49*3d8817e4Smiod *(.stack) 50*3d8817e4Smiod } ${RELOCATING+ > ram} 51*3d8817e4Smiod .stab 0 ${RELOCATING+(NOLOAD)} : 52*3d8817e4Smiod { 53*3d8817e4Smiod *(.stab) 54*3d8817e4Smiod } 55*3d8817e4Smiod .stabstr 0 ${RELOCATING+(NOLOAD)} : 56*3d8817e4Smiod { 57*3d8817e4Smiod *(.stabstr) 58*3d8817e4Smiod } 59*3d8817e4Smiod} 60*3d8817e4SmiodEOF 61*3d8817e4Smiod 62*3d8817e4Smiod 63*3d8817e4Smiod 64*3d8817e4Smiod 65