Increment hdrptr by 8 after SAFE_BYTE_GET64
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 29 Mar 2013 20:42:48 +0000 (20:42 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 29 Mar 2013 20:42:48 +0000 (20:42 +0000)
* dwarf.c (process_debug_info): Increment hdrptr by 8 after
SAFE_BYTE_GET64.

binutils/ChangeLog
binutils/dwarf.c

index 8ae4ebcb577afb0eaf6f64dc34399e30842c67f7..653409142017a4696b43d9863df6869cedf8e756 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-29  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * dwarf.c (process_debug_info): Increment hdrptr by 8 after
+       SAFE_BYTE_GET64.
+
 2013-03-27  Phil Krylov <phil.krylov@gmail.com>
 
        PR binutils/13409
index 1787e7e49598f359b19f2c135b69690b8d157522..a3a59499324b6cf36ffeef9ef4598767cf638e60 100644 (file)
@@ -2238,6 +2238,7 @@ process_debug_info (struct dwarf_section *section,
       if (do_types)
         {
          SAFE_BYTE_GET64 (hdrptr, &signature_high, &signature_low, end);
+         hdrptr += 8;
          SAFE_BYTE_GET_AND_INC (type_offset, hdrptr, offset_size, end);
         }