aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/provide-9.t
blob: 00d906aa80a1cc06b52b8e62a827791f1c032fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PROVIDE (mem_origin = 0x100);
PROVIDE (mem_length = 0x200);

MEMORY
{
  FOO : ORIGIN = mem_origin, LENGTH = mem_length
}

SECTIONS
{
  .data : {
    *(.data .data.*)
  } >FOO

  .text : {
    *(.text .text.*)
  } >FOO

  .bss : {
    *(.bss .bss.*)
  } >FOO

  /DISCARD/ : { *(.*) }
}