diff options
-rw-r--r-- | ld/ldgram.y | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y index a0c881e9a73..c8396bbfd5b 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -809,6 +809,11 @@ origin_spec: length_spec: LENGTH '=' mustbe_exp { + if (yychar == NAME) + { + yyclearin; + ldlex_backup (); + } region->length_exp = $3; } ; |