diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-12-12 08:46:47 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-12-12 08:46:47 +0100 |
commit | 99f0fb12d544c9489804714f89e7738e60d2ea5d (patch) | |
tree | c979cebf7f24ddaefd56c8a5282c1391deda8832 /opcodes/i386-tbl.h | |
parent | b35abeab8d8d682298f5d53aa6b0baba3fcdcee7 (diff) | |
download | gdb-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 'opcodes/i386-tbl.h')
-rw-r--r-- | opcodes/i386-tbl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/opcodes/i386-tbl.h b/opcodes/i386-tbl.h index 8286145..ff84e22 100644 --- a/opcodes/i386-tbl.h +++ b/opcodes/i386-tbl.h @@ -20,7 +20,7 @@ /* i386 opcode table. */ -const insn_template i386_optab[] = +static const insn_template i386_optab[] = { { "mov", 0xa0, 2, None, { 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, @@ -59853,7 +59853,7 @@ const insn_template i386_optab[] = /* i386 register table. */ -const reg_entry i386_regtab[] = +static const reg_entry i386_regtab[] = { { "al", { { 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, @@ -61009,4 +61009,4 @@ const reg_entry i386_regtab[] = 0, 0, { 39, 64 } }, }; -const unsigned int i386_regtab_size = ARRAY_SIZE (i386_regtab); +static const unsigned int i386_regtab_size = ARRAY_SIZE (i386_regtab); |