From b6ca8815ef79f8fef380079e69b6984972a36f2a Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Wed, 18 Feb 2004 16:37:21 +0000 Subject: * ldgram.y (statement_anywhere): Add assert rule. * ldlang.c (exp_init_os): Add assert case. * testsuite/ld-scripts/assert.{s,t,exp}: New. --- ld/ldgram.y | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ld/ldgram.y') diff --git a/ld/ldgram.y b/ld/ldgram.y index 927114a..e885f7d 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -386,6 +386,9 @@ statement_anywhere: ENTRY '(' NAME ')' { lang_add_entry ($3, FALSE); } | assignment end + | ASSERT_K {ldlex_expression ();} '(' exp ',' NAME ')' + { ldlex_popstate (); + lang_add_assignment (exp_assert ($4, $6)); } ; /* The '*' and '?' cases are there because the lexer returns them as -- cgit v1.1