[PATCH 18/23] aarch64: Add QLF_ERR to aarch64_opnd_qualifiers
Alice Carlotti
alice.carlotti@arm.com
Thu May 7 16:14:01 GMT 2026
Add an entry to aarch64_opnd_qualifiers for AARCH64_OPND_QLF_ERR. This
should never be used (otherwise we would previously have had
out-of-bounds memory accesses), but it makes the array length match the
enum length, and might be slightly more robust.
diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c
index 589e6a4939576e90185e617790eb1b4b72b4bf7f..b464bad548af9b3220732b85ff52b2f89521ef2f 100644
--- a/opcodes/aarch64-opc.c
+++ b/opcodes/aarch64-opc.c
@@ -793,6 +793,9 @@ static const struct operand_qualifier_data aarch64_opnd_qualifiers[] =
{0, 0, 0, "msl", 0},
{0, 0, 0, "retrieving", 0},
+
+ /* This shouldn't ever be used. */
+ {0, 0, 0, "ERR", OQK_NIL},
};
static inline bool
More information about the Binutils
mailing list