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]

PATCH: Check machine type for aout-cris


Any reason why aout-cris doesn't check machine type? The current aout-cris
will take any object files in the a.out format. I'd like to check this
patch.


H.J.
----
2001-06-02  H.J. Lu  <hjl@gnu.org>

	* aout-cris.c (MACHTYPE_OK): New. Defined.

Index: aout-cris.c
===================================================================
RCS file: /work/cvs/gnu/binutils/bfd/aout-cris.c,v
retrieving revision 1.1.1.4
diff -u -p -r1.1.1.4 aout-cris.c
--- aout-cris.c	2001/03/09 19:15:25	1.1.1.4
+++ aout-cris.c	2001/06/02 18:54:09
@@ -112,6 +112,8 @@ static boolean MY(set_sizes) PARAMS ((bf
 #define MY_get_section_contents aout_32_get_section_contents
 #endif
 
+#define MACHTYPE_OK(mtype) ((mtype) == M_CRIS)
+
 /* Include generic functions (some are overridden above).  */
 #include "aout32.c"
 #include "aout-target.h"


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