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

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

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