From a37a2806e3289294ed214aed3c8a45db46026b39 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 1 Dec 2016 10:26:32 +0000 Subject: Fix abort in x86 disassembler. PR binutils/20893 * i386-dis.c (OP_VEX): Replace call to abort with a append of bad opcode designator. --- opcodes/ChangeLog | 6 ++++++ opcodes/i386-dis.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'opcodes') diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 299b750..783ffa2 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2016-12-01 Nick Clifton + + PR binutils/20893 + * i386-dis.c (OP_VEX): Replace call to abort with a append of bad + opcode designator. + 2016-11-29 Claudiu Zissulescu * arc-opc.c (insert_ra_chk): New function. diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index ada4401..ad0baf1 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -16975,7 +16975,8 @@ OP_VEX (int bytemode, int sizeflag ATTRIBUTE_UNUSED) names = names_mask; break; default: - abort (); + /* See PR binutils/20893 for a reproducer. */ + oappend ("(bad)"); return; } break; -- cgit v1.1