1# $MirOS: src/gnu/usr.bin/binutils/ld/scripttempl/maxqcoff.sc,v 1.2 2005/03/13 16:07:08 tg Exp $ 2 3test -z "$ENTRY" && ENTRY=_main 4cat <<EOF 5OUTPUT_FORMAT("${OUTPUT_FORMAT}") 6${LIB_SEARCH_DIRS} 7ENTRY(${ENTRY}) 8MEMORY 9 { 10 rom (rx) : ORIGIN = 0, LENGTH = 0x7FFE 11 ram (!rx) : org = 0x0A000, l = 0x5FFF 12 } 13 14SECTIONS 15{ 16 .text ${RELOCATING+ 0x0000}: 17 { 18 *(.text) 19 } >rom 20 21 .data ${RELOCATING}: 22 { 23 *(.data) 24 *(.rodata) 25 *(.bss) 26 *(COMMON) 27 ${RELOCATING+ edata = .}; 28 }>ram 29 30/* .bss ${RELOCATING+ SIZEOF\(.data\) + 0x0000} : 31 { 32 *(.bss) 33 *(COMMON) 34 } 35*/ 36 .stab 0 ${RELOCATING+\(NOLOAD\)} : 37 { 38 [ .stab ] 39 } 40 .stabstr 0 ${RELOCATING+\(NOLOAD\)} : 41 { 42 [ .stabstr ] 43 } 44} 45EOF 46