aboutsummaryrefslogtreecommitdiff
path: root/ld/ldgram.y
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-02-26 05:32:29 +0000
committerIan Lance Taylor <ian@airs.com>1994-02-26 05:32:29 +0000
commit27baca7182ea8cdc7a259b163aa327a0a297e755 (patch)
treed3f409c5ec633a72e11c3812e37248f6331029f5 /ld/ldgram.y
parentf5bfdacd4739f94313ebef51ebbe7c88fb9f58f6 (diff)
downloadgdb-27baca7182ea8cdc7a259b163aa327a0a297e755.zip
gdb-27baca7182ea8cdc7a259b163aa327a0a297e755.tar.gz
gdb-27baca7182ea8cdc7a259b163aa327a0a297e755.tar.bz2
* ldgram.y (section): Reverse the order of memspec_opt and
fill_opt to avoid an ambiguity when both are used. * ld.texinfo: Changed accordingly.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r--ld/ldgram.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y
index c4b83b3..0640afe 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -585,10 +585,10 @@ section: NAME { ldlex_expression(); }
lang_enter_output_section_statement($1,$3,typebits,0,0,0,$4);
}
statement_list_opt
- '}' {ldlex_expression();} fill_opt memspec_opt
+ '}' {ldlex_expression();} memspec_opt fill_opt
{
ldlex_popstate();
- lang_leave_output_section_statement($11, $12);
+ lang_leave_output_section_statement($12, $11);
}
opt_comma