aboutsummaryrefslogtreecommitdiff
path: root/include/elf
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-01-17 14:08:17 +0000
committerNick Clifton <nickc@redhat.com>2005-01-17 14:08:17 +0000
commite38bc3b5244a70367b51990962e12f6847eee6fd (patch)
tree94829d7afe5b744b2f9e4cd58e475ad093036a64 /include/elf
parent12b21d12565a077ddad83d353bd72e9806681f32 (diff)
downloadgdb-e38bc3b5244a70367b51990962e12f6847eee6fd.zip
gdb-e38bc3b5244a70367b51990962e12f6847eee6fd.tar.gz
gdb-e38bc3b5244a70367b51990962e12f6847eee6fd.tar.bz2
Fix SH2A machine variants in order to correctly select instruction inheritance
Diffstat (limited to 'include/elf')
-rw-r--r--include/elf/ChangeLog6
-rw-r--r--include/elf/sh.h13
2 files changed, 17 insertions, 2 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog
index 6ff970f..8ecaa50 100644
--- a/include/elf/ChangeLog
+++ b/include/elf/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-17 Nick Clifton <nickc@redhat.com>
+
+ * sh.h (EF_SH2A_SH4_NOFPU, EF_SH2A_SH3_NOFPU, EF_SH2A_SH4,
+ EF_SH2A_SH3E): New flags.
+ (EF_SH_BFD_TABLE): Add these new flags to the table.
+
2005-01-12 Alan Modra <amodra@bigpond.net.au>
* ppc.h (R_PPC_RELAX32_PLT, R_PPC_RELAX32PC_PLT): Define.
diff --git a/include/elf/sh.h b/include/elf/sh.h
index ddb387b..ae4ac78 100644
--- a/include/elf/sh.h
+++ b/include/elf/sh.h
@@ -1,5 +1,5 @@
/* SH ELF support for BFD.
- Copyright 1998, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+ Copyright 1998, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -42,6 +42,11 @@
#define EF_SH2A_NOFPU 19
#define EF_SH3_NOMMU 20
+#define EF_SH2A_SH4_NOFPU 21
+#define EF_SH2A_SH3_NOFPU 22
+#define EF_SH2A_SH4 23
+#define EF_SH2A_SH3E 24
+
/* This one can only mix in objects from other EF_SH5 objects. */
#define EF_SH5 10
@@ -68,7 +73,11 @@
/* EF_SH4A_NOFPU */ bfd_mach_sh4a_nofpu , \
/* EF_SH4_NOMMU_NOFPU */ bfd_mach_sh4_nommu_nofpu, \
/* EF_SH2A_NOFPU */ bfd_mach_sh2a_nofpu , \
-/* EF_SH3_NOMMU */ bfd_mach_sh3_nommu
+/* EF_SH3_NOMMU */ bfd_mach_sh3_nommu , \
+/* EF_SH2A_SH4_NOFPU */ bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu, \
+/* EF_SH2A_SH3_NOFPU */ bfd_mach_sh2a_nofpu_or_sh3_nommu, \
+/* EF_SH2A_SH4 */ bfd_mach_sh2a_or_sh4 , \
+/* EF_SH2A_SH3E */ bfd_mach_sh2a_or_sh3e
/* Convert arch_sh* into EF_SH*. */
int sh_find_elf_flags (unsigned int arch_set);