aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/assert.t
blob: 9b4c6414263c06baf2fcf1ca05b8ba53e3fecd89 (plain)
1
2
3
4
5
6
7
8
9
10
SECTIONS
{
  .empty : {
  here = . == ADDR(.empty);
  ASSERT (. == ADDR(.empty), "dot is not ADDR");
  ASSERT (here, "here is zero");
  }
  ASSERT (!SIZEOF(.empty), "Empty is not empty")
  /DISCARD/ : { *(.reginfo) }
}