aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-27 01:37:24 -0400
committerMike Frysinger <vapier@gentoo.org>2021-07-01 17:51:00 -0400
commit6c2ede018c51895a3ce7902c86698b90a086e6e0 (patch)
tree0d19df4fc59e3793cfde0b30a8959d4dbbd9e2d1 /include
parent1b8d1f5f3861c04070bd5d249855b575e431f56b (diff)
downloadgdb-6c2ede018c51895a3ce7902c86698b90a086e6e0.zip
gdb-6c2ede018c51895a3ce7902c86698b90a086e6e0.tar.gz
gdb-6c2ede018c51895a3ce7902c86698b90a086e6e0.tar.bz2
opcodes: constify aarch64_opcode_tables
This table is huge (~350k), so stop putting it into writable .data since it's only const data.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/opcode/aarch64.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 06bc4c5..d8d6067 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2021-07-01 Mike Frysinger <vapier@gentoo.org>
+
+ * opcode/aarch64.h (aarch64_opcode_table): Mark const.
+
2021-07-01 Richard Earnshaw <rearnsha@arm.com>
PR gas/28031
diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h
index f43df79..2bbd593 100644
--- a/include/opcode/aarch64.h
+++ b/include/opcode/aarch64.h
@@ -826,7 +826,7 @@ struct aarch64_opcode
typedef struct aarch64_opcode aarch64_opcode;
/* Table describing all the AArch64 opcodes. */
-extern aarch64_opcode aarch64_opcode_table[];
+extern const aarch64_opcode aarch64_opcode_table[];
/* Opcode flags. */
#define F_ALIAS (1 << 0)