]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix checking of relocations of .debug_loc, .debug_ranges
authorPetr Machata <pmachata@redhat.com>
Mon, 16 Feb 2009 13:18:12 +0000 (14:18 +0100)
committerPetr Machata <pmachata@redhat.com>
Mon, 16 Feb 2009 13:18:12 +0000 (14:18 +0100)
* we inadvertently skipped the relocation that matched range beginning

src/dwarflint.c

index 0d995e2e0c7b55d9bae0523455ef3d9124c58a3c..742286369d163ea43e2af5c4b248cdacde1a6feb 100644 (file)
@@ -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,