]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Differentiate between completely invalid and 8/16-bit relocation types
authorPetr Machata <pmachata@redhat.com>
Wed, 18 Feb 2009 16:23:39 +0000 (17:23 +0100)
committerPetr Machata <pmachata@redhat.com>
Wed, 18 Feb 2009 16:23:39 +0000 (17:23 +0100)
src/dwarflint.c

index 700e19d4506303f6f197887bd2e78c6aade95b41..5586156f3efefa59557d2e4b53075a9cbc178081 100644 (file)
@@ -4284,6 +4284,9 @@ check_relocation_section_structural (Dwarf *dwarf,
          /* Technically legal, but never used.  Better have dwarflint
             flag them as erroneous, because it's more likely these
             are a result of a bug than actually being used.  */
+         wr_error (&where, ": 8 or 16-bit relocation type %d.\n", type);
+         break;
+
        default:
          wr_error (&where, ": invalid relocation type %d.\n", type);
          retval = false;