bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/635] New: readelf doesn't dump .debug_ranges section corre


From: hjl at lucon dot org
Subject: [Bug binutils/635] New: readelf doesn't dump .debug_ranges section correctly for 64bit target
Date: 4 Jan 2005 19:20:53 -0000

On 64bit target, readelf always displays

The section .debug_ranges contains:

 <corrupt range entry, start is greater than end>
 <corrupt range entry, start is greater than end>
 <corrupt range entry, start is greater than end>
 <corrupt range entry, start is greater than end>
 end of range
 end of range

Gcc 4.0 generates:

        .section        .debug_ranges,"",@progbits
.Ldebug_ranges0:
        .quad   .LBB2-.Ltext0
        .quad   .LBE2-.Ltext0
        .quad   .LBB3-.Ltext0
        .quad   .LBE3-.Ltext0
        .quad   0x0
        .quad   0x0

But readelf does

  while (start < end)
    {
      unsigned long a;
      unsigned long b;

      a = byte_get (start, 4);
      b = byte_get (start + 4, 4);

      if (a == 0xffffffff)
        {
          /* Attempt to handle 64-bit DWARF3 format.  This assumes
             that in a 32-bit DWARF3 file the base address will
             never be 0xffffffff, and that the .debug_ranges section
             will never contain a mixture of 32-bit and 64-bit entries.  */    
      if (b == 0xffffffff)
            return display_64bit_debug_ranges (start, end);

          printf (_(" set base address to 0x%lx\n"), b);
          base_address = b;
        }

-- 
           Summary: readelf doesn't dump .debug_ranges section correctly for
                    64bit target
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: hjl at lucon dot org
                CC: bug-binutils at gnu dot org
GCC target triplet: x86_64-unknown-linux-gnu


http://sources.redhat.com/bugzilla/show_bug.cgi?id=635

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]