Commit | Line | Data |
---|---|---|
14ea2c1b | 1 | /* This linker script is used for orphan-9 and orphan-10 test. |
77f5e65e | 2 | |
14ea2c1b | 3 | orphan-9: We have a single byte in .data, and an orphan .data.1 |
77f5e65e | 4 | section. We are checking that the .data.1 orphan is assigned an |
14ea2c1b AB |
5 | LMA after .data rather than picking up the lma region of .rodata. |
6 | ||
7 | orphan-10: In this case we have nothing in .data and an orphan | |
8 | .data.1, we are checking that .data.1 is assigned an LMA after | |
9 | .data, rather than defaulting to take LMA == VMA. */ | |
77f5e65e AB |
10 | |
11 | MEMORY | |
12 | { | |
13 | MEM : ORIGIN = 0x1000, LENGTH = 0x100 | |
14 | TEXT : ORIGIN = 0x200, LENGTH = 0x50 | |
15 | DATA : ORIGIN = 0x300, LENGTH = 0x50 | |
16 | RODATA : ORIGIN = 0x400, LENGTH = 0x50 | |
17 | } | |
18 | ||
19 | SECTIONS | |
20 | { | |
21 | .text : { | |
22 | *(.text) | |
23 | } >MEM AT>TEXT | |
24 | ||
25 | .data : AT(0x300) { | |
26 | *(.data) | |
27 | } >MEM | |
28 | ||
29 | .rodata : { | |
30 | *(.rodata) | |
31 | } >MEM AT>RODATA | |
32 | } |