OSDN Git Service

* options.cc (General_options::parse_dynamic_list): New function.
authorcsilvers <csilvers>
Thu, 6 Nov 2008 07:23:31 +0000 (07:23 +0000)
committercsilvers <csilvers>
Thu, 6 Nov 2008 07:23:31 +0000 (07:23 +0000)
commitac2706c479df9bb59d1f01f97223b4e4876ebc29
tree054fa6949d1964c2001f4141d12b467bb57c6579
parent90f0ad9f9c6ff21249bcb40c001214b06cc4c365
* options.cc (General_options::parse_dynamic_list): New function.
* options.h (General_options): New flags dynamic_list,
dynamic_list_data, dynamic_list_cpp_new, and
dynamic_list_cpp_typeinfo.  New variable dynamic_list_.
(General_options::in_dynamic_list): New function.
* script.cc (Lex::Mode): New enum DYNAMIC_LIST.
(Lex::can_start_name): Add support for DYNAMIC_LIST mode.
(Lex::can_continue_name): Likewise.
(yylex): Likewise.
(read_script_file): New parameter script_options.
(read_dynamic_list): New function.
(Script_options::define_dynamic_list): New function.
(dynamic_list_keyword_parsecodes): New variable.
(dynamic_list_keywords): New variable.
* script.h (Script_options::define_dynamic_list): New function
prototype.
(read_dynamic_list): New function prototype.
* symtab.cc (strprefix): New macro.
(Symbol::should_add_dynsym_entry): Support dynamic_list,
dynamic_list_data, dynamic_list_cpp_new, and
dynamic_list_cpp_typeinfo.
* yyscript.y (PARSING_DYNAMIC_LIST): New token.
(dynamic_list_expr): New rule.
(dynamic_list_nodes): Likewise.
(dynamic_list_node): Likewise.
* testsuite/Makefile.am (dynamic_list): New test.
* testsuite/Makefile.in: Regenerated.
* testsuite/dynamic_list.t: New file.
* testsuite/dynamic_list.sh: New file.
gold/ChangeLog
gold/options.cc
gold/options.h
gold/script.cc
gold/script.h
gold/symtab.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/dynamic_list.sh [new file with mode: 0755]
gold/testsuite/dynamic_list.t [new file with mode: 0644]
gold/yyscript.y