Hi.
I was root-causing an instance of
"pc 0x2a in read in psymtab, but not in symtab"
and found that it was caused by an address range of 0-75 being
recorded in the psymtab addrmap but not the symtab addrmap.
The discrepancy between the two addrmaps is a separate patch,
as is whether we can just have one addrmap instead of two.
This patch ignores address ranges that begin at zero if there
is no section at zero to avoid populating the tables with bad data.
Ok to check in?
2012-07-12 Doug Evans <dje@google.com>
* dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
there's no section at address zero.
(dwarf2_record_block_ranges): Ditto.