From bd38246a45dc199ce32b50878670bbbdf7e27ad5 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 17 Dec 2020 08:33:39 +1030 Subject: Constify more arrays bfd/ * coff-z80.c (bfd_howto_type): Make typedef const. * elf32-z80.c (bfd_howto_type): Likewise. * elf32-m32c.c (EncodingTable): Likewise. * elf32-csky.c (csky_arch_for_merge): Likewise. (csky_archs): Use typedef. * elf32-m68hc11.c (m68hc11_direct_relax_table): Make const. (find_relaxable_insn, m68hc11_elf_relax_section): Adjust to suit. * elf32-ppc.c (ppc_alt_plt): Make const. * elf32-rl78.c (relax_addr16): Likewise. * targets.c (_bfd_associated_vector): Likewise. (bfd_target_vector, bfd_associated_vector): Likewise. * libbfd-in.h (bfd_target_vector, bfd_associated_vector): Likewise. * libbfd.h: Regenerate. include/ * opcode/arc-attrs.h (CONFLICT_LIST): Make const. --- bfd/elf32-csky.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bfd/elf32-csky.c') diff --git a/bfd/elf32-csky.c b/bfd/elf32-csky.c index 8d48a03..9ad78cf 100644 --- a/bfd/elf32-csky.c +++ b/bfd/elf32-csky.c @@ -40,7 +40,7 @@ enum merge_class CSKY_V2 }; -typedef struct csky_arch_for_merge +typedef const struct csky_arch_for_merge { const char *name; const unsigned long arch_eflag; @@ -53,7 +53,7 @@ typedef struct csky_arch_for_merge unsigned int do_warning; } csky_arch_for_merge; -static struct csky_arch_for_merge csky_archs[] = +static csky_arch_for_merge csky_archs[] = { /* 510 and 610 merge to 610 without warning. */ { "ck510", CSKY_ARCH_510, CSKY_V1, 0, 0}, -- cgit v1.1