This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

w65 bfd fix


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]