* archive.cc (Lib_group::add_symbols): Lock object before deleting its
authorCary Coutant <ccoutant@google.com>
Mon, 23 Aug 2010 20:28:24 +0000 (20:28 +0000)
committerCary Coutant <ccoutant@google.com>
Mon, 23 Aug 2010 20:28:24 +0000 (20:28 +0000)
commit9919d93bc70b0ed9bb5991bcf46e4c3ffaa0a3ce
tree4d58e30e8ec798bdfd93e875b7aee578ec4aba77
parent96f73ba54fb8e863d7c5d2b7cf3678ea6693952a
* 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/ChangeLog
gold/archive.cc
gold/testsuite/start_lib_test_3.c