[PATCH] Fix DWARF2 range list reading for 64 bit machines
Fred Fish
fnf@specifix.com
Fri Aug 5 21:14:00 GMT 2005
2005-08-05 Fred Fish <fnf@specifix.com>
* dwarf2.c (read_rangelist): Use addr_size instead of offset_size
to determine how many bytes to read from each rangelist entry.
* elf64-x86-64.c (elf64_x86_64_merge_symbol): When mixing a
Index: dwarf2.c
===================================================================
RCS file: /cvs/src/src/bfd/dwarf2.c,v
retrieving revision 1.76
diff -c -p -r1.76 dwarf2.c
*** dwarf2.c 8 Jul 2005 21:42:33 -0000 1.76
--- dwarf2.c 5 Aug 2005 18:10:53 -0000
*************** read_rangelist (struct comp_unit *unit,
*** 1606,1612 ****
bfd_vma low_pc;
bfd_vma high_pc;
! if (unit->offset_size == 4)
{
low_pc = read_4_bytes (unit->abfd, ranges_ptr);
ranges_ptr += 4;
--- 1606,1612 ----
bfd_vma low_pc;
bfd_vma high_pc;
! if (unit->addr_size == 4)
{
low_pc = read_4_bytes (unit->abfd, ranges_ptr);
ranges_ptr += 4;
More information about the Binutils
mailing list