Ravenscar port for RISC-V
[deliverable/binutils-gdb.git] / ld / scripttempl / tic30coff.sc
... / ...
CommitLineData
1# Copyright (C) 2014-2019 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
7cat <<EOF
8/* Copyright (C) 2014-2019 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
14OUTPUT_FORMAT("${OUTPUT_FORMAT}")
15OUTPUT_ARCH("${OUTPUT_ARCH}")
16
17MEMORY
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
25SECTIONS
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
69EOF
This page took 0.022983 seconds and 4 git commands to generate.