Re-enable linking for sh5:
authorJoern Rennecke <joern.rennecke@embecosm.com>
Wed, 17 Apr 2002 19:31:53 +0000 (19:31 +0000)
committerJoern Rennecke <joern.rennecke@embecosm.com>
Wed, 17 Apr 2002 19:31:53 +0000 (19:31 +0000)
ld:
* emulparams/shelf32.sh (MACHINE): Now sh5.
bfd:
* cpu-sh.c (scan_mach): Delete.
(arch_info_struct): Replace scan_mach with bfd_default_scan.
(bfd_sh_arch): Likewise.

bfd/ChangeLog
bfd/cpu-sh.c
ld/ChangeLog
ld/emulparams/shelf32.sh

index d79145b4a224fd4358d6e1c21f19528cd41108e1..e5edc362a2236b5116c0e1d59ff55a755a475f37 100644 (file)
@@ -1,3 +1,9 @@
+Wed Apr 17 19:23:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * cpu-sh.c (scan_mach): Delete.
+       (arch_info_struct): Replace scan_mach with bfd_default_scan.
+       (bfd_sh_arch): Likewise.
+
 2002-04-16  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * ihex.c (ihex_write_object_contents): Fix check for records
index 30cd141ea9cfca2bb8b0b2b3ef5da727a9a5fd6e..dff2f88ebe1c300d52701531a1db2da472377294 100644 (file)
@@ -23,19 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "sysdep.h"
 #include "libbfd.h"
 
-static boolean scan_mach
-  PARAMS ((const struct bfd_arch_info *, const char *));
-
-static boolean
-scan_mach (info, string)
-     const struct bfd_arch_info *info;
-     const char *string;
-{
-  if (strcasecmp (info->printable_name, string) == 0)
-    return true;
-  return false;
-}
-
 #if 0
 /* This routine is provided two arch_infos and returns whether
    they'd be compatible */
@@ -75,7 +62,7 @@ static const bfd_arch_info_type arch_info_struct[] =
     1,
     false,                     /* not the default */
     bfd_default_compatible,
-    scan_mach,
+    bfd_default_scan,
     SH2_NEXT
   },
   {
@@ -89,7 +76,7 @@ static const bfd_arch_info_type arch_info_struct[] =
     1,
     false,                     /* not the default */
     bfd_default_compatible,
-    scan_mach,
+    bfd_default_scan,
     SH_DSP_NEXT
   },
   {
@@ -103,7 +90,7 @@ static const bfd_arch_info_type arch_info_struct[] =
     1,
     false,                     /* not the default */
     bfd_default_compatible,
-    scan_mach,
+    bfd_default_scan,
     SH3_NEXT
   },
   {
@@ -117,7 +104,7 @@ static const bfd_arch_info_type arch_info_struct[] =
     1,
     false,                     /* not the default */
     bfd_default_compatible,
-    scan_mach,
+    bfd_default_scan,
     SH3_DSP_NEXT
   },
   {
@@ -131,7 +118,7 @@ static const bfd_arch_info_type arch_info_struct[] =
     1,
     false,                     /* not the default */
     bfd_default_compatible,
-    scan_mach,
+    bfd_default_scan,
     SH3E_NEXT
   },
   {
@@ -145,7 +132,7 @@ static const bfd_arch_info_type arch_info_struct[] =
     1,
     false,                     /* not the default */
     bfd_default_compatible,
-    scan_mach,
+    bfd_default_scan,
     SH4_NEXT
   },
   {
@@ -159,7 +146,7 @@ static const bfd_arch_info_type arch_info_struct[] =
     1,
     false,                     /* not the default */
     bfd_default_compatible,
-    scan_mach,
+    bfd_default_scan,
     SH64_NEXT
   },
 };
@@ -176,6 +163,6 @@ const bfd_arch_info_type bfd_sh_arch =
   1,
   true,                                /* the default machine */
   bfd_default_compatible,
-  scan_mach,
+  bfd_default_scan,
   SH_NEXT
 };
index e0cf40f954ffac8108aa67292162551c8a6ac7bf..9ec7c8e94c80cbabbee2e18b0d89c5b729d109f9 100644 (file)
@@ -1,3 +1,7 @@
+Wed Apr 17 19:23:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * emulparams/shelf32.sh (MACHINE): Now sh5.
+
 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
 
        * ldgram.y: Fix syntax warning.
index 9b0c698f31a33bde60dac1c2de804dd4ba3bb23b..c05da3f90bfa313cc1ce3703a371ef3bc1fee99f 100644 (file)
@@ -6,7 +6,7 @@ TEXT_START_ADDR=0x1000
 STACK_ADDR='ALIGN (0x40000) + 0x40000'
 MAXPAGESIZE=128
 ARCH=sh
-MACHINE=
+MACHINE=sh5
 ALIGNMENT=8
 TEMPLATE_NAME=elf32
 GENERATE_SHLIB_SCRIPT=yes