ld: Add tests for -z separate-code and -z noseparate-code
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / orphan-9.ld
CommitLineData
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
11MEMORY
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
19SECTIONS
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}
This page took 0.063563 seconds and 4 git commands to generate.