aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/loadaddr3.t
blob: 789f61eda1e43ac081e6ab9590cf92f0dc67d0d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

MEMORY
{
  rom (rx) : ORIGIN = 0x100, LENGTH = 0x100
  ram (rwx) : ORIGIN = 0x200, LENGTH = 0x100

}

SECTIONS
{
  .text : {*(.text .text.*)} >rom
  .data : {data_load = LOADADDR (.data);
	   data_start = ADDR (.data);
	   *(.data .data.*)} >ram AT>rom
  /DISCARD/ : { *(.*) }
}