diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-26 22:16:06 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-26 22:16:06 +0000 |
commit | 195e7dc6c1d9ed2d3ea5dca8c7798799383b7341 (patch) | |
tree | 9ce09d7a35a0625e4c7451a60db30fa9d44d24f2 /gold/yyscript.y | |
parent | df2a60d01de0957f7f63592260083c28293e62f8 (diff) | |
download | gdb-195e7dc6c1d9ed2d3ea5dca8c7798799383b7341.zip gdb-195e7dc6c1d9ed2d3ea5dca8c7798799383b7341.tar.gz gdb-195e7dc6c1d9ed2d3ea5dca8c7798799383b7341.tar.bz2 |
From Craig Silverstein: preliminary support for OPTION in linker script.
Diffstat (limited to 'gold/yyscript.y')
-rw-r--r-- | gold/yyscript.y | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/yyscript.y b/gold/yyscript.y index b78c09b..3250e8e 100644 --- a/gold/yyscript.y +++ b/gold/yyscript.y @@ -151,6 +151,13 @@ %token TRUNCATE %token VERSIONK /* VERSION */ +/* Keywords, part 2. These are keywords that are unique to gold, + and not present in the old GNU linker. As before, unless the + comments say otherwise, the keyword is recognized as the token + name in upper case. */ + +%token OPTION + %% file_list: @@ -164,6 +171,8 @@ file_cmd: { script_start_group(closure); } '(' input_list ')' { script_end_group(closure); } + | OPTION '(' STRING ')' + { script_parse_option(closure, $3); } ; input_list: |