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