Add "arm_any" architecture type to allow -m option to various binutils to match any...
[deliverable/binutils-gdb.git] / bfd / cpu-sh.c
index 4aa99c18e496236f7a6af072fbb1daa4c84db9c0..aaa117b2ace1f409e54d12a3341d63f0ad27e6d6 100644 (file)
@@ -1,13 +1,12 @@
 /* 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-2016 Free Software Foundation, Inc.
    Hacked by Steve Chamberlain of Cygnus Support.
 
    This file is part of BFD, the Binary File Descriptor library.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
@@ -17,7 +16,8 @@
 
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
-   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
+   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+   MA 02110-1301, USA.  */
 
 #include "sysdep.h"
 #include "bfd.h"
@@ -60,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
   },
   {
@@ -74,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
   },
   {
@@ -88,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
   },
   {
@@ -102,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
   },
   {
@@ -116,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
   },
   {
@@ -130,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
   },
   {
@@ -144,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
   },
   {
@@ -158,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
   },
   {
@@ -172,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
   },
   {
@@ -186,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
   },
   {
@@ -200,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
   },
   {
@@ -214,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
   },
   {
@@ -228,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
   },
   {
@@ -242,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
   },
   {
@@ -256,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
   },
   {
@@ -270,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
   },
   {
@@ -284,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
   },
   {
@@ -298,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
   },
   {
@@ -312,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
   },
   {
@@ -326,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
   },
 };
@@ -343,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
 };
 
@@ -366,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 },
@@ -519,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;
 }
This page took 0.031927 seconds and 4 git commands to generate.