aboutsummaryrefslogtreecommitdiff
path: root/gold/yyscript.y
diff options
context:
space:
mode:
Diffstat (limited to 'gold/yyscript.y')
-rw-r--r--gold/yyscript.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/yyscript.y b/gold/yyscript.y
index 34b8b55..0d52882 100644
--- a/gold/yyscript.y
+++ b/gold/yyscript.y
@@ -266,6 +266,8 @@ file_cmd:
{ script_start_sections(closure); }
sections_block '}'
{ script_finish_sections(closure); }
+ | TARGET_K '(' string ')'
+ { script_set_target(closure, $3.value, $3.length); }
| VERSIONK '{'
{ script_push_lex_into_version_mode(closure); }
version_script '}'