From: Petr Machata Date: Mon, 23 Nov 2009 14:48:58 +0000 (+0100) Subject: dwarflint: Fix reference checking for DW_OP_bra, DW_OP_skip X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc77b9c1755e01fe6ec72299a54d1a9b9bacd44e;p=thirdparty%2Felfutils.git dwarflint: Fix reference checking for DW_OP_bra, DW_OP_skip --- diff --git a/src/dwarflint/low.c b/src/dwarflint/low.c index 18892c7a1..d826b600b 100644 --- a/src/dwarflint/low.c +++ b/src/dwarflint/low.c @@ -1974,7 +1974,10 @@ check_location_expression (struct elf_file *file, ": %s branches before the beginning of location expression.\n", dwarf_locexpr_opcode_string (opcode)); else - ref_record_add (&oprefs, opcode_off + skip, &where); + { + uint64_t off_after = read_ctx_get_offset (&ctx) + init_off; + ref_record_add (&oprefs, off_after + skip, &where); + } break; }