This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
v850 ld failure for v850-rtems on master
- From: Nick Clifton <nickc at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Joel Sherrill <joel dot sherrill at OARcorp dot com>, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Tue, 22 Mar 2016 11:05:32 +0000
- Subject: v850 ld failure for v850-rtems on master
- Authentication-results: sourceware.org; auth=none
- References: <56EEB97F dot 30605 at oarcorp dot com> <56F034F9 dot 6060508 at redhat dot com> <56F03A81 dot 30007 at oarcorp dot com> <56F042D3 dot 6070703 at oarcorp dot com>
Hi Pedro,
Your recent patch to change the architecture names for the V850 has
caused a problem for people using custom V850 linker scripts:
https://sourceware.org/ml/binutils/2016-03/msg00263.html
Changing the OUTPUT_ARCH name in the script does work, but the change
is not backwards compatible. Would a patch like this, to add an extra
entry with the old architecture name, cause problems for GDB ?
diff --git a/bfd/cpu-v850_rh850.c b/bfd/cpu-v850_rh850.c
index e86749b..5639e91 100644
--- a/bfd/cpu-v850_rh850.c
+++ b/bfd/cpu-v850_rh850.c
@@ -34,7 +34,8 @@ static const bfd_arch_info_type arch_info_struct[] =
R (bfd_mach_v850e2v3, "v850e2v3", FALSE, & arch_info_struct[3]),
R (bfd_mach_v850e2, "v850e2", FALSE, & arch_info_struct[4]),
R (bfd_mach_v850e1, "v850e1", FALSE, & arch_info_struct[5]),
- R (bfd_mach_v850e, "v850e", FALSE, NULL)
+ R (bfd_mach_v850e, "v850e", FALSE, & arch_info_struct[6]),
+ R (bfd_mach_v850, "v850-rh850", FALSE, NULL) /* For backwards compatibility. */
};
const bfd_arch_info_type bfd_v850_rh850_arch =
Your original posting talked about spaces in the architecture name
causing problems, but this patch does not reintroduce any spaces, so
maybe it will work ?
Cheers
Nick