From: Petr Machata Date: Tue, 24 Mar 2009 16:51:10 +0000 (+0100) Subject: dwarflint: Fix computation of offset of abbreviation section address X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65ef06528ccfb599cf86c1de524c349e34f21225;p=thirdparty%2Felfutils.git dwarflint: Fix computation of offset of abbreviation section address --- diff --git a/src/dwarflint.c b/src/dwarflint.c index e2d9de98d..5dd78650a 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -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");