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