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/script.cc | |
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/script.cc')
-rw-r--r-- | gold/script.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/script.cc b/gold/script.cc index 2cea0c8..08be65f 100644 --- a/gold/script.cc +++ b/gold/script.cc @@ -1045,6 +1045,7 @@ Keyword_to_parsecode::keyword_parsecodes_[] = { "NOLOAD", NOLOAD }, { "ONLY_IF_RO", ONLY_IF_RO }, { "ONLY_IF_RW", ONLY_IF_RW }, + { "OPTION", OPTION }, { "ORIGIN", ORIGIN }, { "OUTPUT", OUTPUT }, { "OUTPUT_ARCH", OUTPUT_ARCH }, @@ -1257,3 +1258,12 @@ script_end_as_needed(void* closurev) Parser_closure* closure = static_cast<Parser_closure*>(closurev); closure->position_dependent_options().clear_as_needed(); } + +// Called by the bison parser to parse an OPTION. + +extern "C" void +script_parse_option(void* closurev, const char* option) +{ + Parser_closure* closure = static_cast<Parser_closure*>(closurev); + printf("%s: Saw option %s\n", closure->filename(), option); //!! +} |