This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Check machine type for aout-cris
- To: hp at axis dot com
- Subject: PATCH: Check machine type for aout-cris
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Sat, 2 Jun 2001 11:59:38 -0700
- Cc: binutils at sourceware dot cygnus dot com
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"