aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/provide-4.t
blob: da663db215b9a7c62ee7c46e898dbf7248602b68 (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)

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

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