From 8514c96f9a8b8c9367814177843b78e7876016c0 Mon Sep 17 00:00:00 2001 From: uwe Date: Sat, 14 Oct 2006 22:20:06 +0000 Subject: [PATCH] Recognize SH2E from new binutils (map to sh3e vector). --- gnu/dist/gdb/bfd/elf32-sh-nbsd.c | 1 + gnu/dist/gdb/include/elf/sh.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/gnu/dist/gdb/bfd/elf32-sh-nbsd.c b/gnu/dist/gdb/bfd/elf32-sh-nbsd.c index 7e734e1a26af..4a9855e2fa15 100644 --- a/gnu/dist/gdb/bfd/elf32-sh-nbsd.c +++ b/gnu/dist/gdb/bfd/elf32-sh-nbsd.c @@ -74,6 +74,7 @@ nbsd_sh_elf_set_mach_from_flags (abfd) bfd_default_set_arch_mach (abfd, bfd_arch_sh, bfd_mach_sh3); break; + case EF_SH2E: case EF_SH2A_SH3E: bfd_default_set_arch_mach (abfd, bfd_arch_sh, bfd_mach_sh3e); break; diff --git a/gnu/dist/gdb/include/elf/sh.h b/gnu/dist/gdb/include/elf/sh.h index fb28e497b7bf..00486924835f 100644 --- a/gnu/dist/gdb/include/elf/sh.h +++ b/gnu/dist/gdb/include/elf/sh.h @@ -35,6 +35,10 @@ #define EF_SH4 9 /* New flags from binutils 2.16 */ +#define EF_SH2E 11 +#define EF_SH4A 12 +#define EF_SH2A 13 + #define EF_SH4_NOFPU 16 #define EF_SH4A_NOFPU 17 #define EF_SH4_NOMMU_NOFPU 18