[PATCH] opcodes/ppc: make ppc_opts[] static const
Jan Beulich
jbeulich@suse.com
Mon Jul 28 16:00:54 GMT 2025
There's no reason to allow the array to be modifiable, nor for it to be
globally visible.
--- a/opcodes/ppc-dis.c
+++ b/opcodes/ppc-dis.c
@@ -72,7 +72,7 @@ struct ppc_mopt {
ppc_cpu_t sticky;
};
-struct ppc_mopt ppc_opts[] = {
+static const struct ppc_mopt ppc_opts[] = {
{ "403", PPC_OPCODE_PPC | PPC_OPCODE_403,
0 },
{ "405", PPC_OPCODE_PPC | PPC_OPCODE_403 | PPC_OPCODE_405,
More information about the Binutils
mailing list