Retro68/binutils/ld/testsuite/ld-scripts/assert.t

11 lines
219 B
Perl
Raw Normal View History

2012-03-26 19:18:29 +00:00
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) }
}