PATCH: Check machine type for aout-cris
H . J . Lu
hjl@lucon.org
Sat Jun 2 11:59:00 GMT 2001
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"
More information about the Binutils
mailing list