Commit | Line | Data |
---|---|---|
abf874aa CL |
1 | /* |
2 | sections .code.1 and .code.2 fit in .raml | |
3 | section .code.3 fits in .ramu and does not need a farcall stub to jump to code4 | |
4 | section .code.4 fits in .ramz | |
5 | */ | |
6 | MEMORY | |
7 | { | |
8 | RAML (rwx) : ORIGIN = 0x1FFF0000, LENGTH = 0x0001c | |
9 | RAMU (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008 | |
10 | RAMZ (rwx) : ORIGIN = 0x20040000, LENGTH = 0x00400 | |
11 | } | |
12 | ||
13 | SECTIONS | |
14 | { | |
15 | .raml : | |
16 | { _raml_start = . ; | |
17 | *(.boot) ; | |
18 | *(.code) *(.code.*) ; | |
19 | _raml_end = . ; | |
20 | } > RAML | |
21 | ||
22 | .ramu : AT ( ADDR (.raml) + SIZEOF (.raml) ) | |
23 | { _ramu_start = . ; | |
24 | *(.code) *(.code.*) ; | |
25 | _ramu_end = . ; | |
26 | } > RAMU | |
27 | ||
28 | .ramz : AT ( ADDR (.ramu) + SIZEOF (.ramu) ) | |
29 | { _ramz_start = . ; | |
30 | *(.code) *(.code.*) ; | |
31 | _ramz_end = . ; | |
32 | } > RAMZ | |
33 | } |