aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2021-09-15 10:10:46 +0200
committerTom de Vries <tdevries@suse.de>2021-09-15 10:10:46 +0200
commit7b7c365c5c663ffdfb2b3f696db35c23cdccd921 (patch)
tree0ca7edf1e7e900dac9d7ab72327516daacd28cb9 /bfd
parent0a8d812b42b95e65dfe5c2344e98f805ba8156d4 (diff)
downloadgdb-7b7c365c5c663ffdfb2b3f696db35c23cdccd921.zip
gdb-7b7c365c5c663ffdfb2b3f696db35c23cdccd921.tar.gz
gdb-7b7c365c5c663ffdfb2b3f696db35c23cdccd921.tar.bz2
[bfd] Ensure unique printable names for bfd archs
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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/cpu-ft32.c1
-rw-r--r--bfd/cpu-nds32.c2
-rw-r--r--bfd/cpu-rx.c5
3 files changed, 3 insertions, 5 deletions
diff --git a/bfd/cpu-ft32.c b/bfd/cpu-ft32.c
index f711268..d40ef08 100644
--- a/bfd/cpu-ft32.c
+++ b/bfd/cpu-ft32.c
@@ -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)
};
diff --git a/bfd/cpu-nds32.c b/bfd/cpu-nds32.c
index 3473a56..e3e9fec 100644
--- a/bfd/cpu-nds32.c
+++ b/bfd/cpu-nds32.c
@@ -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);
diff --git a/bfd/cpu-rx.c b/bfd/cpu-rx.c
index 6015236..9d9d4c7 100644
--- a/bfd/cpu-rx.c
+++ b/bfd/cpu-rx.c
@@ -27,10 +27,9 @@
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)
};