Commit | Line | Data |
---|---|---|
20e56351 DJ |
1 | /* Memory region overflow tests: two regions, each too small for the single |
2 | section placed there. */ | |
3 | ||
4 | MEMORY { | |
5 | bss (rwx) : ORIGIN = 0, LENGTH = 0 | |
6 | r1 (rwx) : ORIGIN = 0x1000, LENGTH = 8 | |
7 | r2 (rwx) : ORIGIN = 0x2000, LENGTH = 8 | |
8 | } | |
9 | _start = 0x1000; | |
10 | SECTIONS { | |
11 | .bss : { *(.bss) } > bss | |
12 | .text : { *(.txt) } > r1 | |
13 | .data : { *(.dat) } > r2 | |
14 | /DISCARD/ : { *(*) } | |
15 | } |