diff options
author | Ian Lance Taylor <ian@airs.com> | 2009-02-27 19:57:46 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2009-02-27 19:57:46 +0000 |
commit | 0602e05a845a545a8b52386a4dec66b74a158bc7 (patch) | |
tree | 538c81672e2f97885ce7f8054e6726f0189ad79b /gold/testsuite/Makefile.am | |
parent | b5096abe11166944e2de1bb8a27a1c36d02a63ef (diff) | |
download | gdb-0602e05a845a545a8b52386a4dec66b74a158bc7.zip gdb-0602e05a845a545a8b52386a4dec66b74a158bc7.tar.gz gdb-0602e05a845a545a8b52386a4dec66b74a158bc7.tar.bz2 |
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.
Diffstat (limited to 'gold/testsuite/Makefile.am')
-rw-r--r-- | gold/testsuite/Makefile.am | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am index 46c661f..1ba7c9d 100644 --- a/gold/testsuite/Makefile.am +++ b/gold/testsuite/Makefile.am @@ -742,6 +742,11 @@ ver_test_3.o: ver_test_3.cc ver_test_4.o: ver_test_4.cc $(CXXCOMPILE) -c -fpic -o $@ $< +check_SCRIPTS += ver_test_1.sh +check_DATA += ver_test_1.syms +ver_test_1.syms: ver_test_1.so + $(TEST_READELF) -s $< >$@ 2>/dev/null + check_PROGRAMS += ver_test_2 ver_test_2_SOURCES = ver_test_main_2.cc ver_test_2_DEPENDENCIES = gcctestdir/ld ver_test_4.so ver_test_2.so |