diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2019-10-25 15:13:21 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2019-10-25 15:13:21 -0700 |
commit | 760ddef46d443b41086292831f78a71ea6b7b1ab (patch) | |
tree | e3eaf3e82a9102091b02c14cb2408811ed07562c | |
parent | 256878f318c60cbcc145fc95936035e0f7ff1af6 (diff) | |
download | gdb-760ddef46d443b41086292831f78a71ea6b7b1ab.zip gdb-760ddef46d443b41086292831f78a71ea6b7b1ab.tar.gz gdb-760ddef46d443b41086292831f78a71ea6b7b1ab.tar.bz2 |
elfedit: Report unknown x86 feature
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.
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/elfedit.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 6c5143d..7a56ce4 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,9 @@ 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. 2019-10-25 Nick Clifton <nickc@redhat.com> diff --git a/binutils/elfedit.c b/binutils/elfedit.c index 5c0d711..da1984e 100644 --- a/binutils/elfedit.c +++ b/binutils/elfedit.c @@ -260,7 +260,10 @@ elf_x86_feature (const char *feature, int enable) 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) { |