Commit | Line | Data |
---|---|---|
985743c7 | 1 | # Default linker script for c54x, TI COFF(1). |
c9e769c2 | 2 | # patterned after description in TI Assembler Tools PDF, SPRU102C, 7-53 |
985743c7 | 3 | # |
219d1afa | 4 | # Copyright (C) 2014-2018 Free Software Foundation, Inc. |
6c19b93b | 5 | # |
985743c7 NC |
6 | # Copying and distribution of this file, with or without modification, |
7 | # are permitted in any medium without royalty provided the copyright | |
8 | # notice and this notice are preserved. | |
9 | ||
74459f0e TW |
10 | test -z "$ENTRY" && ENTRY=_c_int00 |
11 | ||
12 | cat <<EOF | |
219d1afa | 13 | /* Copyright (C) 2014-2018 Free Software Foundation, Inc. |
985743c7 NC |
14 | |
15 | Copying and distribution of this script, with or without modification, | |
16 | are permitted in any medium without royalty provided the copyright | |
17 | notice and this notice are preserved. */ | |
18 | ||
74459f0e TW |
19 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") |
20 | OUTPUT_ARCH("${OUTPUT_ARCH}") | |
21 | ||
22 | MEMORY | |
23 | { | |
c9e769c2 TW |
24 | /*PAGE 0 : */ prog (RXI) : ORIGIN = 0x00000080, LENGTH = 0xFF00 |
25 | /*PAGE 1 : */ data (W) : ORIGIN = 0x01000080, LENGTH = 0xFF80 | |
74459f0e TW |
26 | } |
27 | ||
ec2d9b29 | 28 | ${RELOCATING+ENTRY (${ENTRY})} |
74459f0e | 29 | |
6c19b93b AM |
30 | SECTIONS |
31 | { | |
32 | .text : | |
74459f0e TW |
33 | { |
34 | ___text__ = .; | |
35 | *(.text) | |
36 | etext = .; | |
37 | ___etext__ = .; | |
38 | } > prog | |
6c19b93b | 39 | .data : |
74459f0e TW |
40 | { |
41 | ___data__ = .; | |
42 | __data = .; | |
43 | *(.data) | |
44 | __edata = .; | |
45 | edata = .; | |
46 | ___edata__ = .; | |
47 | } > prog | |
48 | /* all other initialized sections should be allocated here */ | |
6c19b93b | 49 | .cinit : |
74459f0e TW |
50 | { |
51 | *(.cinit) | |
52 | } > prog | |
6c19b93b | 53 | .bss : |
74459f0e TW |
54 | { |
55 | ___bss__ = .; | |
56 | __bss = .; | |
57 | *(.bss) | |
58 | *(COMMON) | |
59 | __ebss = .; | |
60 | end = .; | |
61 | ___end__ = .; | |
62 | } > data | |
63 | /* all other uninitialized sections should be allocated here */ | |
64 | } | |
65 | EOF |