X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Fcpu-sh.c;h=2a8b931c8a78aab05d4b1b76c817bd0adca34a23;hb=dd7566892070fbccb91c536c46584c20ef29961b;hp=af97a47367f54c17b6f0f65118f01c70943c3939;hpb=cd123cb70c845b890eed231a84e6e84c92c2ef92;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/cpu-sh.c b/bfd/cpu-sh.c index af97a47367..2a8b931c8a 100644 --- a/bfd/cpu-sh.c +++ b/bfd/cpu-sh.c @@ -1,6 +1,5 @@ /* BFD library support routines for the Renesas / SuperH SH architecture. - Copyright 1993, 1994, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, - 2007 Free Software Foundation, Inc. + Copyright (C) 1993-2014 Free Software Foundation, Inc. Hacked by Steve Chamberlain of Cygnus Support. This file is part of BFD, the Binary File Descriptor library. @@ -61,6 +60,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2_NEXT }, { @@ -75,6 +75,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2E_NEXT }, { @@ -89,6 +90,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH_DSP_NEXT }, { @@ -103,6 +105,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH3_NEXT }, { @@ -117,6 +120,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH3_NOMMU_NEXT }, { @@ -131,6 +135,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH3_DSP_NEXT }, { @@ -145,6 +150,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH3E_NEXT }, { @@ -159,6 +165,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH4_NEXT }, { @@ -173,6 +180,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH4A_NEXT }, { @@ -187,6 +195,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH4AL_DSP_NEXT }, { @@ -201,6 +210,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH4_NOFPU_NEXT }, { @@ -215,6 +225,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH4_NOMMU_NOFPU_NEXT }, { @@ -229,6 +240,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH4A_NOFPU_NEXT }, { @@ -243,6 +255,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2A_NEXT }, { @@ -257,6 +270,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2A_NOFPU_NEXT }, { @@ -271,6 +285,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2A_NOFPU_OR_SH4_NOMMU_NOFPU_NEXT }, { @@ -285,6 +300,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2A_NOFPU_OR_SH3_NOMMU_NEXT }, { @@ -299,6 +315,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2A_OR_SH4_NEXT }, { @@ -313,6 +330,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH2A_OR_SH3E_NEXT }, { @@ -327,6 +345,7 @@ static const bfd_arch_info_type arch_info_struct[] = FALSE, /* Not the default. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH64_NEXT }, }; @@ -344,6 +363,7 @@ const bfd_arch_info_type bfd_sh_arch = TRUE, /* The default machine. */ bfd_default_compatible, bfd_default_scan, + bfd_arch_default_fill, SH_NEXT }; @@ -367,7 +387,7 @@ static struct { unsigned long bfd_mach, arch, arch_up; } bfd_to_arch_table[] = { bfd_mach_sh2a_nofpu_or_sh3_nommu, arch_sh2a_nofpu_or_sh3_nommu, arch_sh2a_nofpu_or_sh3_nommu_up }, { bfd_mach_sh2a_or_sh4, arch_sh2a_or_sh4, arch_sh2a_or_sh4_up }, { bfd_mach_sh2a_or_sh3e, arch_sh2a_or_sh3e, arch_sh2a_or_sh3e_up }, - + { bfd_mach_sh3, arch_sh3, arch_sh3_up }, { bfd_mach_sh3_nommu, arch_sh3_nommu, arch_sh3_nommu_up }, { bfd_mach_sh3_dsp, arch_sh3_dsp, arch_sh3_dsp_up }, @@ -520,6 +540,6 @@ sh_merge_bfd_arch (bfd *ibfd, bfd *obfd) bfd_default_set_arch_mach (obfd, bfd_arch_sh, sh_get_bfd_mach_from_arch_set (merged_arch)); - + return TRUE; }