This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Fix DWARF2 range list reading for 64 bit machines
- From: Fred Fish <fnf at specifix dot com>
- To: binutils at sourceware dot org
- Cc: fnf at specifix dot com
- Date: Fri, 5 Aug 2005 17:13:48 -0400
- Subject: [PATCH] Fix DWARF2 range list reading for 64 bit machines
- Reply-to: fnf at specifix dot com
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;