1# $MirOS: src/gnu/usr.bin/binutils/ld/scripttempl/m88kbcs.sc,v 1.2 2005/03/13 16:07:08 tg Exp $ 2# 3# These are substituted in as variables in order to get '}' in a shell 4# conditional expansion. 5INIT='.init : { *(.init) }' 6FINI='.fini : { *(.fini) }' 7cat <<EOF 8OUTPUT_FORMAT("${OUTPUT_FORMAT}") 9OUTPUT_ARCH(${ARCH}) 10ENTRY(__start) 11${RELOCATING+${LIB_SEARCH_DIRS}} 12 13SECTIONS 14{ 15 .text ${RELOCATING+ (0x20007 + SIZEOF_HEADERS) &~ 7} : 16 { 17 ${RELOCATING+ __.text.start = .}; 18 ${RELOCATING+ __.init.start = .}; 19 ${RELOCATING+ *(.init)} 20 ${RELOCATING+ __.init.end = .}; 21 *(.text) 22 ${RELOCATING+ __.tdesc_start = .}; 23 ${RELOCATING+ *(.tdesc)} 24 ${RELOCATING+ __.text_end = .} ; 25 ${RELOCATING+ __.initp.start = .}; 26 ${RELOCATING+ __.initp.end = .}; 27 ${RELOCATING+ __.fini_start = .}; 28 ${RELOCATING+ *(.fini) } 29 ${RELOCATING+ __.fini_end = .}; 30 ${RELOCATING+_etext = .}; 31 } 32 .data ${RELOCATING+ NEXT (0x400000) + ((SIZEOF(.text) + ADDR(.text)) % 0x2000)} : 33 { 34 *(.data) 35 ${RELOCATING+_edata = .}; 36 } 37 .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} : 38 { 39 *(.bss) 40 *(COMMON) 41 ${RELOCATING+ _end = .}; 42 ${RELOCATING+ __end = .}; 43 } 44 ${RELOCATING- ${INIT}} 45 ${RELOCATING- ${FINI}} 46 .comment 0 ${RELOCATING+\(NOLOAD\)} : 47 { 48 *(.comment) 49 } 50} 51EOF 52