* options.h (class General_options): Define --wrap as a special
commitf6a3fd0f05455d0be710cb238d89f8e0005e80ff
authorIan Lance Taylor <ian@airs.com>
Wed, 9 Apr 2008 00:48:13 +0000 (9 00:48 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 9 Apr 2008 00:48:13 +0000 (9 00:48 +0000)
treedb7b9e1a6978d9288b9debc0db66fc0507dd839b
parente4c3ed604e50ea55e994790d1cff18f7ab025621
* options.h (class General_options): Define --wrap as a special
option.  Add wrap_symbols_ field.
(General_options::any_wrap_symbols): New function.
(General_options::is_wrap_symbol): New function.
* options.cc (General_options::parse_wrap): New function.
(General_options::General_options): Initialize wrap_symbols_.
* symtab.cc (Symbol_table::wrap_symbol): New function.
(Symbol_table::add_from_object): Handle --wrap.
* symtab.h (class Symbol_table): Declare wrap_symbol.
* target.h (Target::wrap_char): New function.
(Target::Target_info): Add wrap_char field.
* i386.cc (Target_i386::i386_info): Initialize wrap_char.
* x86_64.cc (Target_x86_64::x86_64_info): Likewise.
* testsuite/testfile.cc (Target_test::test_target_info):
Likewise.
gold/ChangeLog
gold/i386.cc
gold/options.cc
gold/options.h
gold/symtab.cc
gold/symtab.h
gold/target.h
gold/testsuite/testfile.cc
gold/x86_64.cc