Commit | Line | Data |
---|---|---|
250d07de | 1 | # Copyright (C) 2014-2021 Free Software Foundation, Inc. |
6c19b93b | 2 | # |
985743c7 NC |
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 | ||
252b5132 | 7 | cat <<EOF |
250d07de | 8 | /* Copyright (C) 2014-2021 Free Software Foundation, Inc. |
985743c7 NC |
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 | ||
252b5132 RH |
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 | ||
6c19b93b AM |
25 | SECTIONS |
26 | { | |
985743c7 NC |
27 | .vectors 0x00000000 : |
28 | { | |
29 | *(vectors) | |
30 | } | |
252b5132 | 31 | |
6c19b93b | 32 | .text : |
985743c7 NC |
33 | { |
34 | *(.text) | |
35 | } > rom | |
252b5132 | 36 | |
985743c7 NC |
37 | .const : |
38 | { | |
39 | *(.const) | |
40 | __etext = . ; | |
41 | } > rom | |
252b5132 | 42 | |
985743c7 NC |
43 | .mdata : AT( ADDR(.const) + SIZEOF(.const) ) |
44 | { | |
45 | __data = . ; | |
46 | *(.data); | |
47 | __edata = . ; | |
48 | } > ram | |
252b5132 | 49 | |
985743c7 NC |
50 | .bss : |
51 | { | |
52 | __bss = . ; | |
53 | *(.bss); | |
54 | *(COMMON); | |
55 | __ebss = . ; | |
56 | } > ram | |
252b5132 | 57 | |
985743c7 NC |
58 | .ram0 : |
59 | { | |
60 | *(ram0) | |
61 | } > ramblk0 | |
252b5132 | 62 | |
985743c7 NC |
63 | .ram1 : |
64 | { | |
65 | *(ram1) | |
66 | } > ramblk1 | |
252b5132 RH |
67 | } |
68 | ||
69 | EOF |