1# Default linker script for c54x, TI COFF(1).
2# patterned after description in TI Assembler Tools PDF, SPRU102C, 7-53
3#
4# Copyright (C) 2014-2021 Free Software Foundation, Inc.
5#
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
10test -z "$ENTRY" && ENTRY=_c_int00
11
12cat <<EOF
13/* Copyright (C) 2014-2021 Free Software Foundation, Inc.
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
19OUTPUT_FORMAT("${OUTPUT_FORMAT}")
20OUTPUT_ARCH("${OUTPUT_ARCH}")
21
22MEMORY
23{
24	/*PAGE 0 : */ prog (RXI) : ORIGIN = 0x00000080, LENGTH = 0xFF00
25	/*PAGE 1 : */ data (W) : ORIGIN = 0x01000080, LENGTH = 0xFF80
26}
27
28${RELOCATING+ENTRY (${ENTRY})}
29
30SECTIONS
31{
32	.text :
33	{
34		___text__ = .;
35		*(.text)
36		etext = .;
37		___etext__ = .;
38	} > prog
39	.data :
40	{
41		___data__ = .;
42		__data = .;
43		*(.data)
44		__edata = .;
45		edata = .;
46		___edata__ = .;
47	} > prog
48	/* all other initialized sections should be allocated here */
49	.cinit :
50	{
51		*(.cinit)
52	} > prog
53	.bss :
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}
65EOF
66