aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2010-08-23 20:28:24 +0000
committerCary Coutant <ccoutant@google.com>2010-08-23 20:28:24 +0000
commit9919d93bc70b0ed9bb5991bcf46e4c3ffaa0a3ce (patch)
tree4d58e30e8ec798bdfd93e875b7aee578ec4aba77 /gold/testsuite
parent96f73ba54fb8e863d7c5d2b7cf3678ea6693952a (diff)
downloadgdb-9919d93bc70b0ed9bb5991bcf46e4c3ffaa0a3ce.zip
gdb-9919d93bc70b0ed9bb5991bcf46e4c3ffaa0a3ce.tar.gz
gdb-9919d93bc70b0ed9bb5991bcf46e4c3ffaa0a3ce.tar.bz2
* archive.cc (Lib_group::add_symbols): Lock object before deleting its
symbols data. (Lib_group::include_member): Unlock object after deleting its symbols data. * testsuite/start_lib_test_3.c: Remove all global symbols to trigger the bug fixed here.
Diffstat (limited to 'gold/testsuite')
-rw-r--r--gold/testsuite/start_lib_test_3.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gold/testsuite/start_lib_test_3.c b/gold/testsuite/start_lib_test_3.c
index 555eea1..86444e0 100644
--- a/gold/testsuite/start_lib_test_3.c
+++ b/gold/testsuite/start_lib_test_3.c
@@ -22,9 +22,4 @@
This is a test of the --start-lib and --end-lib options. */
-extern void t3 (void);
-
-void
-t3 (void)
-{
-}
+static char t3[] = "t3";