]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/scripttempl/tic30coff.sc
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / scripttempl / tic30coff.sc
1 # Copyright (C) 2014-2021 Free Software Foundation, Inc.
2 #
3 # Copying and distribution of this file, with or without modification,
4 # are permitted in any medium without royalty provided the copyright
5 # notice and this notice are preserved.
6
7 cat <<EOF
8 /* Copyright (C) 2014-2021 Free Software Foundation, Inc.
9
10 Copying and distribution of this script, with or without modification,
11 are permitted in any medium without royalty provided the copyright
12 notice and this notice are preserved. */
13
14 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
15 OUTPUT_ARCH("${OUTPUT_ARCH}")
16
17 MEMORY
18 {
19 rom : ORIGIN = 0x00000300, LENGTH = 16k
20 ram : ORIGIN = 0x00000300 + 16k, LENGTH = 16k
21 ramblk0 : ORIGIN = 0x02026000, LENGTH = 0x1000
22 ramblk1 : ORIGIN = 0x02027000, LENGTH = 0x1000
23 }
24
25 SECTIONS
26 {
27 .vectors 0x00000000 :
28 {
29 *(vectors)
30 }
31
32 .text :
33 {
34 *(.text)
35 } > rom
36
37 .const :
38 {
39 *(.const)
40 __etext = . ;
41 } > rom
42
43 .mdata : AT( ADDR(.const) + SIZEOF(.const) )
44 {
45 __data = . ;
46 *(.data);
47 __edata = . ;
48 } > ram
49
50 .bss :
51 {
52 __bss = . ;
53 *(.bss);
54 *(COMMON);
55 __ebss = . ;
56 } > ram
57
58 .ram0 :
59 {
60 *(ram0)
61 } > ramblk0
62
63 .ram1 :
64 {
65 *(ram1)
66 } > ramblk1
67 }
68
69 EOF