[bfd] Ensure unique printable names for bfd archs
authorTom de Vries <tdevries@suse.de>
Wed, 15 Sep 2021 08:10:46 +0000 (10:10 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 15 Sep 2021 08:10:46 +0000 (10:10 +0200)
Remove duplicate entry in bfd_ft32_arch and bfd_rx_arch.

Fix printable name for bfd_mach_n1: "nh1" -> "n1".

PR 28336
* cpu-ft32.c (arch_info_struct): Remove "ft32" entry.
* cpu-rx.c (arch_info_struct): Remove "rx" entry.
* cpu-nds32.c (bfd_nds32_arch): Fix printable name for bfd_mach_n1
entry.

bfd/cpu-ft32.c
bfd/cpu-nds32.c
bfd/cpu-rx.c

index f7112685e0f5fcdbb345c97f7dcff5b9c819a49c..d40ef081be9d71aeccc9d8e7652bb5087afde510 100644 (file)
@@ -43,7 +43,6 @@
 
 static const bfd_arch_info_type arch_info_struct[] =
 {
-  N (bfd_mach_ft32, "ft32", false, &arch_info_struct[1]),
   N (bfd_mach_ft32b, "ft32b", false, NULL)
 };
 
index 3473a56908584bd38169ca2775c315bf735f7804..e3e9feca10b295e5d6737fd8d0303b47a709aeba 100644 (file)
@@ -42,4 +42,4 @@ static const bfd_arch_info_type arch_info_struct[] =
 };
 
 const bfd_arch_info_type bfd_nds32_arch =
-  N (bfd_mach_n1, "n1h", true, NEXT);
+  N (bfd_mach_n1, "n1", true, NEXT);
index 601523691bf6c401b306052da0eeb3d63956647c..9d9d4c79761f4d32a2b2f5d7dd20e0a956fbbca5 100644 (file)
     bfd_default_compatible, bfd_default_scan,                  \
     bfd_arch_default_fill, next, 0 }
 
-static const bfd_arch_info_type arch_info_struct[3] =
+static const bfd_arch_info_type arch_info_struct[2] =
 {
-  N (bfd_mach_rx,    "rx",    3, false, arch_info_struct + 1),
-  N (bfd_mach_rx_v2, "rx:v2", 3, false, arch_info_struct + 2),
+  N (bfd_mach_rx_v2, "rx:v2", 3, false, arch_info_struct + 1),
   N (bfd_mach_rx_v3, "rx:v3", 3, false, NULL)
 };