diff options
author | Ian Lance Taylor <ian@airs.com> | 2009-06-23 06:39:47 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2009-06-23 06:39:47 +0000 |
commit | e6a307bae3aac48d98d01f51308e238aeabbdfd4 (patch) | |
tree | 757dcf3896fda91c7ffc280de3add37f3ca7eb41 /gold/yyscript.y | |
parent | 3ee173de46efe0473d4aa2f63b16fe5943599e2b (diff) | |
download | ppe42-binutils-e6a307bae3aac48d98d01f51308e238aeabbdfd4.tar.gz ppe42-binutils-e6a307bae3aac48d98d01f51308e238aeabbdfd4.zip |
PR 10030
* yyscript.y: Parse TARGET.
* script.cc (script_set_target): New function.
* script-c.h (script_set_target): Declare.
* options.cc (General_options::string_to_object_format): Rename
from string_to_object_format in anonymous namespace. Change
callers.
* options.h (class General_options): Declare
string_to_object_format.
Diffstat (limited to 'gold/yyscript.y')
-rw-r--r-- | gold/yyscript.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/yyscript.y b/gold/yyscript.y index 34b8b556b9..0d52882d4b 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 '}' |