1# default linker script for c54x, TI COFF(1). 2# patterned after description in TI Assembler Tools PDF, SPRU102C, 7-53 3test -z "$ENTRY" && ENTRY=_c_int00 4 5cat <<EOF 6OUTPUT_FORMAT("${OUTPUT_FORMAT}") 7OUTPUT_ARCH("${OUTPUT_ARCH}") 8 9MEMORY 10{ 11 /*PAGE 0 : */ prog (RXI) : ORIGIN = 0x00000080, LENGTH = 0xFF00 12 /*PAGE 1 : */ data (W) : ORIGIN = 0x01000080, LENGTH = 0xFF80 13} 14 15ENTRY(${ENTRY}) 16 17SECTIONS 18{ 19 .text : 20 { 21 ___text__ = .; 22 *(.text) 23 etext = .; 24 ___etext__ = .; 25 } > prog 26 .data : 27 { 28 ___data__ = .; 29 __data = .; 30 *(.data) 31 __edata = .; 32 edata = .; 33 ___edata__ = .; 34 } > prog 35 /* all other initialized sections should be allocated here */ 36 .cinit : 37 { 38 *(.cinit) 39 } > prog 40 .bss : 41 { 42 ___bss__ = .; 43 __bss = .; 44 *(.bss) 45 *(COMMON) 46 __ebss = .; 47 end = .; 48 ___end__ = .; 49 } > data 50 /* all other uninitialized sections should be allocated here */ 51} 52EOF 53