From 9919d93bc70b0ed9bb5991bcf46e4c3ffaa0a3ce Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Mon, 23 Aug 2010 20:28:24 +0000 Subject: * 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. --- gold/testsuite/start_lib_test_3.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gold/testsuite') 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"; -- cgit v1.1