aboutsummaryrefslogtreecommitdiff
path: root/ld/ldgram.y
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r--ld/ldgram.y8
1 files changed, 6 insertions, 2 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y
index 2e0e501..304b0b2 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -151,7 +151,11 @@ command_line:
;
command_line_option:
- SCRIPT ifile_list ENDSCRIPT
+ SCRIPT
+ { ldgram_in_script = true; }
+ ifile_list
+ { ldgram_in_script = false; }
+ ENDSCRIPT
| OPTION_v
{
ldversion();
@@ -318,7 +322,7 @@ ifile_p1:
| high_level_library
| low_level_library
| floating_point_support
- | assignment end
+ | statement_anywhere
| TARGET_K '(' NAME ')'
{ lang_add_target($3); }
| SEARCH_DIR '(' filename ')'