* ldgram.y (statement_anywhere): Add assert rule.

* ldlang.c (exp_init_os): Add assert case.
	* testsuite/ld-scripts/assert.{s,t,exp}: New.
This commit is contained in:
Nathan Sidwell
2004-02-18 16:37:21 +00:00
parent 34920d91a5
commit b6ca8815ef
7 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
SECTIONS
{
.empty : {}
ASSERT (!SIZEOF(.empty), "Empty is not empty")
}