]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Fix error condition
authorPetr Machata <pmachata@redhat.com>
Wed, 8 Apr 2009 12:54:00 +0000 (14:54 +0200)
committerPetr Machata <pmachata@redhat.com>
Fri, 10 Apr 2009 13:43:26 +0000 (15:43 +0200)
src/dwarflint.c

index c6e793c45140725e69b05ffe34ba4e8a6516988d..6b5eee3d3e0d303451cacfa602022b27cdb4ad62 100644 (file)
@@ -3284,10 +3284,9 @@ read_die_chain (struct read_ctx *ctx,
                                                &where, skip_mismatched)))
                      relocate_one (reloc, rel, 8, &value, &where,
                                    reloc_target (form, it), NULL);
-                   else if (type_is_rel
-                            && (check_locptr || check_rangeptr))
+                   else if (type_is_rel && check_ptr != check_nothing)
                      wr_message (mc_impact_2 | mc_die_other | mc_reloc
-                                 | (check_rangeptr ? mc_ranges : mc_loc),
+                                 | mc_check[check_ptr],
                                  &where, PRI_LACK_RELOCATION,
                                  dwarf_form_string (form));
                  }