aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1997-08-25 23:00:29 +0000
committerNick Clifton <nickc@redhat.com>1997-08-25 23:00:29 +0000
commit8988d935a335f9f60ec1eccc1caa70cd757e3201 (patch)
treeae79c7e64442c21e77ed4cbbc6a7271b94e8505c /bfd/elf.c
parenta3515171ce237d5eca963c7fbb394be3cc3bf58a (diff)
downloadgdb-8988d935a335f9f60ec1eccc1caa70cd757e3201.zip
gdb-8988d935a335f9f60ec1eccc1caa70cd757e3201.tar.gz
gdb-8988d935a335f9f60ec1eccc1caa70cd757e3201.tar.bz2
Switched over to using machine numbers to distinguish v850 architecture variants.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 48ab443..7b1d196 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2872,10 +2872,20 @@ prep_headers (abfd)
/* end-sanitize-d30v */
/* start-sanitize-v850 */
case bfd_arch_v850:
- i_ehdrp->e_machine = EM_CYGNUS_V850;
+ switch (bfd_get_mach (abfd))
+ {
+ default:
+ case 0: i_ehdrp->e_machine = EM_CYGNUS_V850; break;
+/* start-sanitize-v850e */
+ case bfd_mach_v850e: i_ehdrp->e_machine = EM_CYGNUS_V850E; break;
+/* end-sanitize-v850e */
+/* start-sanitize-v850eq */
+ case bfd_mach_v850eq: i_ehdrp->e_machine = EM_CYGNUS_V850EQ; break;
+/* end-sanitize-v850eq */
+ }
break;
/* end-sanitize-v850 */
- case bfd_arch_arc:
+ case bfd_arch_arc:
i_ehdrp->e_machine = EM_CYGNUS_ARC;
break;
case bfd_arch_m32r: