diff options
author | Cary Coutant <ccoutant@google.com> | 2013-06-14 20:07:18 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2013-06-14 20:07:18 +0000 |
commit | 32364e50a712ab6d6d9ef24dffd0a6624222dc27 (patch) | |
tree | 88085b81ba7c5cf3ed0f4dbf0e3e79d3abde1a29 /gold/testsuite/Makefile.am | |
parent | 3531d54957df0088a866d314d33cf96bd234bdf3 (diff) | |
download | gdb-32364e50a712ab6d6d9ef24dffd0a6624222dc27.zip gdb-32364e50a712ab6d6d9ef24dffd0a6624222dc27.tar.gz gdb-32364e50a712ab6d6d9ef24dffd0a6624222dc27.tar.bz2 |
gold/
* resolve.cc (Symbol::override_base): Don't override st_type
from plugin placeholder symbols.
(Symbol_table::resolve): Likewise.
(Symbol_table::should_override): Don't complain about TLS mismatch
if the TO symbol is a plugin placeholder.
* testsuite/Makefile.am (plugin_test_tls): New test.
* testsuite/Makefile.in: Regenerate.
* testsuite/plugin_test_tls.sh: New test script.
* testsuite/two_file_test_2_tls.cc: New test source.
* testsuite/two_file_test_tls.cc: New test source.
Diffstat (limited to 'gold/testsuite/Makefile.am')
-rw-r--r-- | gold/testsuite/Makefile.am | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am index e7f3b94..b21492c 100644 --- a/gold/testsuite/Makefile.am +++ b/gold/testsuite/Makefile.am @@ -1617,6 +1617,22 @@ empty.syms: @echo "" >$@ @echo "Symbol table" >>$@ +if TLS + +check_PROGRAMS += plugin_test_tls +check_SCRIPTS += plugin_test_tls.sh +check_DATA += plugin_test_tls.err +MOSTLYCLEANFILES += plugin_test_tls.err +plugin_test_tls: two_file_test_tls.o two_file_test_1.syms two_file_test_1b.syms two_file_test_2_tls.syms gcctestdir/ld plugin_test.so + $(CXXLINK) -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so",--plugin-opt,"_Z4f13iv" two_file_test_tls.o two_file_test_1.syms two_file_test_1b.syms two_file_test_2_tls.syms 2>plugin_test_tls.err +plugin_test_tls.err: plugin_test_tls + @touch plugin_test_tls.err + +two_file_test_2_tls.syms: two_file_test_2_tls.o + $(TEST_READELF) -sW $< >$@ 2>/dev/null + +endif TLS + MOSTLYCLEANFILES += unused.c unused.syms: unused.o $(TEST_READELF) -sW $< >$@ 2>/dev/null |