aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/Makefile.am
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <rafael.espindola@gmail.com>2014-09-18 13:58:16 -0400
committerRafael Ávila de Espíndola <rafael.espindola@gmail.com>2014-09-18 13:58:16 -0400
commitc0c71592f7641790251052cdf18469f21a7bb8f6 (patch)
tree4cfa3c8d93410b362a7c67ac7c4d1beb4e8524ef /gold/testsuite/Makefile.am
parent2b4fd423cf503beb6264590f0517d35f17a6ab8d (diff)
downloadfsf-binutils-gdb-c0c71592f7641790251052cdf18469f21a7bb8f6.zip
fsf-binutils-gdb-c0c71592f7641790251052cdf18469f21a7bb8f6.tar.gz
fsf-binutils-gdb-c0c71592f7641790251052cdf18469f21a7bb8f6.tar.bz2
A a testcase for common symbol handling with plugins.
2014-09-18 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> * testsuite/Makefile.am (plugin_test_10): New test. * testsuite/Makefile.in: Regenerate * testsuite/plugin_common_test_2.c (c1): Align to 8. * testsuite/plugin_test_10.sh: New file.
Diffstat (limited to 'gold/testsuite/Makefile.am')
-rw-r--r--gold/testsuite/Makefile.am11
1 files changed, 11 insertions, 0 deletions
diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am
index 5e1cd0d..dd06d5f 100644
--- a/gold/testsuite/Makefile.am
+++ b/gold/testsuite/Makefile.am
@@ -1657,6 +1657,17 @@ MOSTLYCLEANFILES += two_file_test_1c.o
two_file_test_1c.o: two_file_test_1.o
cp two_file_test_1.o $@
+check_PROGRAMS += plugin_test_10
+check_SCRIPTS += plugin_test_10.sh
+check_DATA += plugin_test_10.sections
+MOSTLYCLEANFILES += plugin_test_10.sections
+plugin_test_10: plugin_common_test_1.syms plugin_common_test_2.o gcctestdir/ld plugin_test.so
+ $(CXXLINK) -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so" plugin_common_test_1.syms plugin_common_test_2.o
+plugin_test_10.sections: plugin_test_10
+ $(TEST_READELF) -SW $< >$@ 2>/dev/null
+
+
+
plugin_test.so: plugin_test.o
$(LINK) -Bgcctestdir/ -shared plugin_test.o
plugin_test.o: plugin_test.c