aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-12-12 08:46:47 +0100
committerJan Beulich <jbeulich@suse.com>2022-12-12 08:46:47 +0100
commit99f0fb12d544c9489804714f89e7738e60d2ea5d (patch)
treec979cebf7f24ddaefd56c8a5282c1391deda8832 /gas
parentb35abeab8d8d682298f5d53aa6b0baba3fcdcee7 (diff)
downloadgdb-99f0fb12d544c9489804714f89e7738e60d2ea5d.zip
gdb-99f0fb12d544c9489804714f89e7738e60d2ea5d.tar.gz
gdb-99f0fb12d544c9489804714f89e7738e60d2ea5d.tar.bz2
x86: instantiate i386_{op,reg}tab[] in gas instead of in libopcodes
Unlike many other architectures, x86 does not share an opcode table between assembly and disassembly. Any consumer of libopcodes would only ever access one of the two. Since gas is the only consumer of the assembly data, move it there. While doing so mark respective entities "static" in i386-gen (we may want to do away with i386_regtab_size altogether). This also shrinks the number of relocations to be processed for libopcodes.so by about 30%.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-i386.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index d7bab7d..e68ff2f 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -2961,6 +2961,8 @@ i386_mach (void)
as_fatal (_("unknown architecture"));
}
+#include "opcodes/i386-tbl.h"
+
void
md_begin (void)
{