Add support for non-contiguous memory regions
[deliverable/binutils-gdb.git] / ld / testsuite / ld-arm / non-contiguous-arm5.ld
1 /*
2 section .code.1 fits in .raml
3 section .code.2 does not fit in .raml and goes to .ramu
4 section .code.3 would fit in .raml, but goes to .ramu: Check that .code.2 and .code.3 are not swapped
5 section .code.4 fits in .ramz
6 */
7 MEMORY
8 {
9 RAML (rwx) : ORIGIN = 0x1FFF0000, LENGTH = 0x00014
10 RAMU (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00020
11 RAMZ (rwx) : ORIGIN = 0x20040000, 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 }
This page took 0.035583 seconds and 4 git commands to generate.