diff options
Diffstat (limited to 'gold/archive.cc')
-rw-r--r-- | gold/archive.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gold/archive.cc b/gold/archive.cc index c62fb24..36e4862 100644 --- a/gold/archive.cc +++ b/gold/archive.cc @@ -877,10 +877,12 @@ Archive::include_member(Symbol_table* symtab, Layout* layout, delete obj; else { - Read_symbols_data sd; - obj->read_symbols(&sd); - obj->layout(symtab, layout, &sd); - obj->add_symbols(symtab, &sd, layout); + { + Read_symbols_data sd; + obj->read_symbols(&sd); + obj->layout(symtab, layout, &sd); + obj->add_symbols(symtab, &sd, layout); + } // If this is an external member of a thin archive, unlock the file // for the next task. |