aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>2015-03-10 12:41:57 +0100
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2015-03-10 12:49:34 +0100
commitc683726541cb8d3ff769f803fd7fae65db5c6f5c (patch)
tree178e3f0c34ac0e5ffc9d377e53ade10b5987ed19 /gas
parent5e0d7f77b20d74d2866e41b72697581c39f3197b (diff)
downloadbinutils-c683726541cb8d3ff769f803fd7fae65db5c6f5c.zip
binutils-c683726541cb8d3ff769f803fd7fae65db5c6f5c.tar.gz
binutils-c683726541cb8d3ff769f803fd7fae65db5c6f5c.tar.bz2
S/390: Add check for length field operand
gas/ 2015-03-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * gas/config/tc-s390.c (md_gather_operands): Check for valid length field operands.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-s390.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 0a6a4b9..577a1cd 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
+
+ * config/tc-s390.c (md_gather_operands): Check for valid
+ length field operands.
+
2015-03-10 Michael Perkins <perkinsmg75@yahoo.co.uk>
* config/tc-arm.c (parse_operands): Fix bug setting writeback
diff --git a/gas/config/tc-s390.c b/gas/config/tc-s390.c
index 9102c60..5051baf 100644
--- a/gas/config/tc-s390.c
+++ b/gas/config/tc-s390.c
@@ -1216,6 +1216,9 @@ md_gather_operands (char *str,
}
else
{
+ if ((operand->flags & S390_OPERAND_LENGTH)
+ && ex.X_op != O_constant)
+ as_fatal (_("invalid length field specified"));
if ((operand->flags & S390_OPERAND_INDEX)
&& ex.X_add_number == 0
&& warn_areg_zero)