bfd patch for backward compatibility with older IEEE objects

Alexander Aganichev AAganichev@hypercom.com
Sun Jul 9 23:25:00 GMT 2000


Hi!

The following patch should fix reading older IEEE objects by fresh
binutils. I'm not sure, but it looks like all or a lot of m68k related
cases below the code I've added is useless.

diff -ruNd binutils-000708/bfd/ChangeLog
binutils-000708-hypercom/bfd/ChangeLog
--- binutils-000708/bfd/ChangeLog  Mon Jul 10 09:38:01 2000
+++ binutils-000708-hypercom/bfd/ChangeLog    Mon Jul 10 10:14:02 2000
@@ -1,3 +1,8 @@
+2000-07-10  Alexander Aganichev  <AAganichev@hypercom.com>
+
+    * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
+    compatibility with older binutils.
+
 2000-07-08  Alan Modra  <alan@linuxcare.com.au>

     * section.c (struct sec): Add id field.  Tidy comment formatting.
diff -ruNd binutils-000708/bfd/archures.c
binutils-000708-hypercom/bfd/archures.c
--- binutils-000708/bfd/archures.c Mon Jul 10 09:38:01 2000
+++ binutils-000708-hypercom/bfd/archures.c   Mon Jul 10 10:15:25 2000
@@ -807,6 +807,18 @@
   switch (number)
     {
       /* FIXME: These are needed to parse IEEE objects.  */
+      /* The following seven case's are here only for compatibility with
+     older binutils (at least IEEE objects from binutils 2.9.1 require
+     these) */
+    case bfd_mach_m68000:
+    case bfd_mach_m68010:
+    case bfd_mach_m68020:
+    case bfd_mach_m68030:
+    case bfd_mach_m68040:
+    case bfd_mach_m68060:
+    case bfd_mach_cpu32:
+      arch = bfd_arch_m68k;
+      break;
     case 68000:
       arch = bfd_arch_m68k;
       number = bfd_mach_m68000;

--
Alexander Aganichev
Software Engineer
Hypercom Europe Limited, Inc.



More information about the Binutils mailing list