Commit | Line | Data |
---|---|---|
219d1afa | 1 | # Copyright (C) 2014-2018 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 | ||
d70c5fc7 | 7 | cat <<EOF |
219d1afa | 8 | /* Copyright (C) 2014-2018 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 | ||
d70c5fc7 NC |
14 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") |
15 | OUTPUT_ARCH(${ARCH}) | |
97b11f40 | 16 | ${RELOCATING+ENTRY ("_start")} |
d70c5fc7 NC |
17 | MEMORY |
18 | { | |
6c19b93b AM |
19 | vectarea : o =0xc00000, l = 0x0300 |
20 | ||
d70c5fc7 NC |
21 | introm : o = 0xc00300, l = 0x16000 |
22 | /* The stack starts at the top of main ram. */ | |
6c19b93b | 23 | |
d70c5fc7 NC |
24 | dram : o = 0x8000 , l = 0xffff |
25 | /* At the very top of the address space is the 8-bit area. */ | |
6c19b93b AM |
26 | |
27 | ldata : o =0x4000 ,l = 0x0200 | |
d70c5fc7 NC |
28 | } |
29 | SECTIONS | |
30 | { | |
31 | /*.vects : | |
6c19b93b AM |
32 | { |
33 | *(.vects) | |
34 | } ${RELOCATING+ > vectarea} */ | |
d70c5fc7 | 35 | .init : |
6c19b93b AM |
36 | { |
37 | *(.init) | |
38 | } ${RELOCATING+ >introm} | |
39 | ||
d70c5fc7 NC |
40 | .text : |
41 | { | |
6c19b93b | 42 | *(.rodata) |
d70c5fc7 NC |
43 | *(.text.*) |
44 | *(.text) | |
6c19b93b | 45 | ${RELOCATING+ _etext = . ; } |
d70c5fc7 NC |
46 | } ${RELOCATING+ > introm} |
47 | .data : | |
48 | { | |
49 | *(.data) | |
50 | *(.data.*) | |
6c19b93b | 51 | |
d70c5fc7 NC |
52 | ${RELOCATING+ _edata = . ; } |
53 | } ${RELOCATING+ > dram} | |
54 | ||
55 | .bss : | |
56 | { | |
57 | ${RELOCATING+ _bss_start = . ;} | |
58 | *(.bss) | |
59 | *(COMMON) | |
60 | ${RELOCATING+ _end = . ; } | |
61 | } ${RELOCATING+ > dram} | |
62 | ||
6c19b93b AM |
63 | .ldata : |
64 | { | |
65 | *(.ldata) | |
66 | } ${RELOCATING+ > ldata} | |
d70c5fc7 | 67 | |
6c19b93b AM |
68 | .vects : |
69 | { | |
70 | *(.vects) | |
71 | } ${RELOCATING+ > vectarea} | |
d70c5fc7 NC |
72 | } |
73 | EOF |