w65 bfd fix

Alan Modra amodra@bigpond.net.au
Mon Aug 26 02:00:00 GMT 2002


Fixes problems like:

$ ./objdump -dr tmpdir/bintest.o 

tmpdir/bintest.o:     file format coff-w65

./objdump: Can't disassemble for architecture UNKNOWN!

bfd/ChangeLog
	* coffcode.h (coff_set_arch_mach_hook): Handle W65MAGIC.

Applying mainline and branch.

Index: bfd/coffcode.h
===================================================================
RCS file: /cvs/src/src/bfd/coffcode.h,v
retrieving revision 1.80
diff -u -p -r1.80 coffcode.h
--- bfd/coffcode.h	8 Jul 2002 05:34:08 -0000	1.80
+++ bfd/coffcode.h	26 Aug 2002 08:23:10 -0000
@@ -2158,6 +2158,13 @@ coff_set_arch_mach_hook (abfd, filehdr)
       arch = bfd_arch_mcore;
       break;
 #endif
+
+#ifdef W65MAGIC
+    case W65MAGIC:
+      arch = bfd_arch_w65;
+      break;
+#endif
+
     default:			/* Unreadable input file type */
       arch = bfd_arch_obscure;
       break;

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list