Report unknown x86 feature:
$ ./elfedit --disable-x86-feature foo a.out
elfedit: Error: Unknown x86 feature: foo
$
* elfedit.c (elf_x86_feature): Report unknown x86 feature.
+2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfedit.c (elf_x86_feature): Report unknown x86 feature.
+
2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
* elfedit.c (update_gnu_property): Replace BYTE_PUT with byte_put.
else if (strcasecmp (feature, "shstk") == 0)
x86_feature = GNU_PROPERTY_X86_FEATURE_1_SHSTK;
else
- return -1;
+ {
+ error (_("Unknown x86 feature: %s\n"), feature);
+ return -1;
+ }
if (enable)
{