From: Petr Machata Date: Mon, 16 Feb 2009 13:18:12 +0000 (+0100) Subject: Fix checking of relocations of .debug_loc, .debug_ranges X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e58b3f9805686d8ee5242fab83e7b6b9647116dd;p=thirdparty%2Felfutils.git Fix checking of relocations of .debug_loc, .debug_ranges * we inadvertently skipped the relocation that matched range beginning --- diff --git a/src/dwarflint.c b/src/dwarflint.c index 0d995e2e0..742286369 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -4060,7 +4060,7 @@ check_loc_or_range_structural (Dwarf *dwarf, { if (off == last_off) continue; - relocation_skip (&data->rel, off, + relocation_skip (&data->rel, off - 1, &WHERE (data->sec->id, NULL), skip_unref); } if (!check_loc_or_range_ref (&ctx, refs[i].cu, data,