* symtab.cc (Symbol_table::define_default_version): New function,
authorIan Lance Taylor <ian@airs.com>
Tue, 17 Mar 2009 07:07:21 +0000 (07:07 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 17 Mar 2009 07:07:21 +0000 (07:07 +0000)
commit8c50070107224cdda510640738eca333f67409ee
tree8d2dced8570857a0bf78e5dcad5a3c4464d8d80a
parentb646ddd43a01254d0be446b8a8dd1a9135a758e4
* symtab.cc (Symbol_table::define_default_version): New function,
broken out of add_from_object.
(Symbol_table::add_from_object): Call define_default_version.
(Symbol_table::define_special_symbol): Add resolve_oldsym
parameter.  Change all callers.  If the version for a symbol comes
from a version script, resolve it with the symbol with the same
name with no version.  Also add the symbol without a version if
appropriate.
(do_define_in_output_data): If resolving with oldsym, don't delete
sym.
(do_define_in_output_segment): Likewise.
(do_define_as_constant): Likewise.
* symtab.h (class Symbol_table): Update declarations.
gold/ChangeLog
gold/symtab.cc
gold/symtab.h