aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-25 17:50:26 +0000
committerIan Lance Taylor <iant@google.com>2007-09-25 17:50:26 +0000
commit9eb9fa57c2a9eec4c08491715d3341df811b7f9c (patch)
treec68eac98b999ebfb3251ab5f9851900bf8e4179b /gold/symtab.cc
parent0b058123a01a282fe112ee8863bfbf0abf89f29b (diff)
downloadgdb-9eb9fa57c2a9eec4c08491715d3341df811b7f9c.zip
gdb-9eb9fa57c2a9eec4c08491715d3341df811b7f9c.tar.gz
gdb-9eb9fa57c2a9eec4c08491715d3341df811b7f9c.tar.bz2
Add cache parameter to get_view. Discard uncached views on unlock.
Fix bug this exposed in archive armap symbol name handling.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r--gold/symtab.cc3
1 files changed, 2 insertions, 1 deletions
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<Object> 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<const char*>(c), len);
}
}