From 9eb9fa57c2a9eec4c08491715d3341df811b7f9c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 25 Sep 2007 17:50:26 +0000 Subject: Add cache parameter to get_view. Discard uncached views on unlock. Fix bug this exposed in archive armap symbol name handling. --- gold/symtab.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gold/symtab.cc') diff --git a/gold/symtab.cc b/gold/symtab.cc index 8cd55cd..c68b9ca 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -1550,7 +1550,8 @@ Warnings::note_warnings(Symbol_table* symtab) Task_locker_obj tl(*p->second.object); const unsigned char* c; off_t len; - c = p->second.object->section_contents(p->second.shndx, &len); + c = p->second.object->section_contents(p->second.shndx, &len, + false); p->second.set_text(reinterpret_cast(c), len); } } -- cgit v1.1