* archive.cc (Archive::get_elf_object_for_member): Remove call
[deliverable/binutils-gdb.git] / gold / readsyms.cc
index ac646d95d1ca517326eb2c2a8a5ace89bf06bf41..412ffcd07708f54f74e4072a10e48c4c6ed7d704 100644 (file)
@@ -1,6 +1,6 @@
 // readsyms.cc -- read input file symbols for gold
 
-// Copyright 2006, 2007, 2008 Free Software Foundation, Inc.
+// Copyright 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
 // Written by Ian Lance Taylor <iant@google.com>.
 
 // This file is part of gold.
@@ -196,8 +196,10 @@ Read_symbols::do_read_symbols(Workqueue* workqueue)
         {
           // The input file was claimed by a plugin, and its symbols
           // have been provided by the plugin.
-         input_file->file().claim_for_plugin();
-         input_file->file().unlock(this);
+
+          // We are done with the file at this point, so unlock it.
+          obj->unlock(this);
+
           workqueue->queue_next(new Add_plugin_symbols(this->symtab_,
                                                        this->layout_,
                                                        obj,
This page took 0.024936 seconds and 4 git commands to generate.