aboutsummaryrefslogtreecommitdiff
path: root/gold/dwarf_reader.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-10-23 21:37:26 +0000
committerCary Coutant <ccoutant@google.com>2012-10-23 21:37:26 +0000
commit8787852de14e445e04bfb644c2c0d9178f807ec2 (patch)
tree64c307ba9581510cee0bc928712c13cf3b0067a5 /gold/dwarf_reader.cc
parent9fc236f3fd33165d017dee94798ed08db95e87a0 (diff)
downloadgdb-8787852de14e445e04bfb644c2c0d9178f807ec2.zip
gdb-8787852de14e445e04bfb644c2c0d9178f807ec2.tar.gz
gdb-8787852de14e445e04bfb644c2c0d9178f807ec2.tar.bz2
gold/
* dwarf_reader.cc (Dwarf_info_reader::do_parse): Use stored abbrev_shndx. * dwarf_reader.h (Dwarf_info_reader::Dwarf_info_reader): Initialize abbrev_shndx_. (Dwarf_info_reader::set_abbrev_shndx): New method. (Dwarf_info_reader::abbrev_shndx_): New data member.
Diffstat (limited to 'gold/dwarf_reader.cc')
-rw-r--r--gold/dwarf_reader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/dwarf_reader.cc b/gold/dwarf_reader.cc
index d0f059d..14222c5 100644
--- a/gold/dwarf_reader.cc
+++ b/gold/dwarf_reader.cc
@@ -1195,7 +1195,7 @@ Dwarf_info_reader::do_parse()
this->reloc_mapper_->initialize(this->reloc_shndx_, this->reloc_type_);
// Loop over compilation units (or type units).
- unsigned int abbrev_shndx = 0;
+ unsigned int abbrev_shndx = this->abbrev_shndx_;
off_t abbrev_offset = 0;
const unsigned char* pinfo = this->buffer_;
while (pinfo < this->buffer_end_)