]>
Commit | Line | Data |
---|---|---|
6ecb2b74 | 1 | cat <<EOF |
76971f0d | 2 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") |
6ecb2b74 PB |
3 | OUTPUT_ARCH(${ARCH}) |
4 | ||
5 | MEMORY { | |
6 | rom : o = 0x0000, l = 0x7fe0 | |
7 | duart : o = 0x7fe0, l = 16 | |
76971f0d | 8 | ram : o = 0x8000, l = 28k |
9d1fe8a4 SC |
9 | topram : o = 0x8000+28k, l = 1k |
10 | hmsram : o = 0xfb80, l = 512 | |
6ecb2b74 PB |
11 | } |
12 | ||
13 | SECTIONS | |
14 | { | |
15 | .text : | |
16 | { | |
17 | *(.text) | |
18 | *(.strings) | |
76971f0d | 19 | _etext = .; |
7e5c1057 | 20 | } ${RELOCATING+ > ram} |
6ecb2b74 PB |
21 | .data : |
22 | { | |
23 | *(.data) | |
76971f0d | 24 | _edata = .; |
7e5c1057 | 25 | } ${RELOCATING+ > ram} |
6ecb2b74 PB |
26 | .bss : |
27 | { | |
76971f0d | 28 | ${RELOCATING+ _bss_start = .}; |
6ecb2b74 PB |
29 | *(.bss) |
30 | *(COMMON) | |
76971f0d | 31 | ${RELOCATING+ _end = .}; |
7e5c1057 | 32 | } ${RELOCATING+ >ram} |
76971f0d SC |
33 | .stack : |
34 | { | |
9d1fe8a4 | 35 | _stack = .; |
76971f0d SC |
36 | *(.stack) |
37 | } ${RELOCATING+ > topram} | |
6ecb2b74 PB |
38 | } |
39 | EOF | |
76971f0d SC |
40 | |
41 | ||
42 | ||
43 |