ld: better handling of lma region for orphan sections
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / orphan-9.ld
1 /* This linker script is used for orphan-9 test.
2
3 We have a single byte in .data, and an orphan .data.1
4 section. We are checking that the .data.1 orphan is assigned an
5 LMA after .data rather than picking up the lma region of .rodata. */
6
7 MEMORY
8 {
9 MEM : ORIGIN = 0x1000, LENGTH = 0x100
10 TEXT : ORIGIN = 0x200, LENGTH = 0x50
11 DATA : ORIGIN = 0x300, LENGTH = 0x50
12 RODATA : ORIGIN = 0x400, LENGTH = 0x50
13 }
14
15 SECTIONS
16 {
17 .text : {
18 *(.text)
19 } >MEM AT>TEXT
20
21 .data : AT(0x300) {
22 *(.data)
23 } >MEM
24
25 .rodata : {
26 *(.rodata)
27 } >MEM AT>RODATA
28 }
This page took 0.030004 seconds and 4 git commands to generate.