summaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-03-29 20:42:47 +0000
committerH.J. Lu <hjl.tools@gmail.com>2013-03-29 20:42:47 +0000
commit0ca66f6490e68860442a4b39154d9d235e147209 (patch)
tree489a3b12393988471174f51213be42ed0a1dfca9 /binutils/dwarf.c
parent90e7d845b214c796ba2aa4d2eb1b1708a2e2ec9f (diff)
downloadbinutils-redhat-0ca66f6490e68860442a4b39154d9d235e147209.tar.gz
Increment hdrptr by 8 after SAFE_BYTE_GET64
* dwarf.c (process_debug_info): Increment hdrptr by 8 after SAFE_BYTE_GET64.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 1787e7e495..a3a5949932 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -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);
}