]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Fix computation of offset of abbreviation section address
authorPetr Machata <pmachata@redhat.com>
Tue, 24 Mar 2009 16:51:10 +0000 (17:51 +0100)
committerPetr Machata <pmachata@redhat.com>
Tue, 24 Mar 2009 16:50:05 +0000 (17:50 +0100)
src/dwarflint.c

index e2d9de98dbed89556f109cbaa023c74a34e800e4..5dd78650a0edc903f7d543218ab7d7e8c0cc27d0 100644 (file)
@@ -3391,7 +3391,7 @@ check_cu_structural (struct read_ctx *ctx,
 
   /* Abbrev offset.  */
   uint64_t abbrev_offset;
-  uint64_t ctx_offset = read_ctx_get_offset (ctx);
+  uint64_t ctx_offset = read_ctx_get_offset (ctx) + cu->offset;
   if (!read_ctx_read_offset (ctx, dwarf_64, &abbrev_offset))
     {
       wr_error (&cu->where, ": can't read abbrev offset.\n");