aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/provide-4.t
blob: 5bf581d727d42f8fe82ebe2a5586681a2b826161 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SECTIONS
{
  . = SIZEOF_HEADERS;
  PROVIDE (foo = 1);
  PROVIDE (bar = 2);
  PROVIDE (baz = 3);
  .data 0x2000 :
  {
    *(.data .rw)

    PROVIDE (loc1 = ALIGN (., 0x10));
    PROVIDE (loc2 = ALIGN (., 0x10));
  }

  PROVIDE (loc3 = loc1 + 0x20);
  loc4 = loc2 + 0x20;
}