PR 9836
authorIan Lance Taylor <ian@airs.com>
Fri, 27 Feb 2009 19:57:46 +0000 (19:57 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 27 Feb 2009 19:57:46 +0000 (19:57 +0000)
commit0602e05a845a545a8b52386a4dec66b74a158bc7
tree538c81672e2f97885ce7f8054e6726f0189ad79b
parentb5096abe11166944e2de1bb8a27a1c36d02a63ef
PR 9836
* symtab.cc (Symbol_table::add_from_object): If the visibility is
hidden or internal, force the symbol to be local.
* resolve.cc (Symbol::override_visibility): Define.
(Symbol::override_base): Use override_visibility.
(Symbol_table::resolve): Likewise.
(Symbol::override_base_with_special): Likewise.
(Symbol_table::override_with_special): If the visibility is hidden
or internal, force the symbol to be local.
* symtab.h (class Symbol): Add set_visibility and
override_visibility.
* testsuite/ver_test_1.sh: New file.
* testsuite/Makefile.am (check_SCRIPTS): Add ver_test_1.sh.
(check_DATA): Add ver_test_1.syms.
(ver_test_1.syms): New target.
* testsuite/Makefile.in: Rebuild.
gold/ChangeLog
gold/resolve.cc
gold/symtab.cc
gold/symtab.h
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/ver_test_1.sh [new file with mode: 0755]