summaryrefslogtreecommitdiff
path: root/gas/config/e-i386aout.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2000-01-26 22:48:31 +0000
committerAlan Modra <amodra@bigpond.net.au>2000-01-26 22:48:31 +0000
commit32fee2a0e2873c01bfbea820b8538d50fe5b166e (patch)
treeb03845488ff73059caff790a83fafe49304cee1c /gas/config/e-i386aout.c
parentedae641b1f0fb0689c2df35e8b64caad7e0945ef (diff)
downloadbinutils-redhat-32fee2a0e2873c01bfbea820b8538d50fe5b166e.tar.gz
This set of patches add support for aout emulation on the x86
assembler. ie. You will be able to do "as --em=i386aout" on an x86 linux-elf assembler to generate aout format object files, rather than using a separate assembler. The aout emulation is enabled by giving "--enable-targets=i386-linuxaout" to configure. Oh yeah, there's a couple of fixes too. Error messages shouldn't be passed to printf in the format arg just in case someone puts a `%' in the message.
Diffstat (limited to 'gas/config/e-i386aout.c')
-rw-r--r--gas/config/e-i386aout.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gas/config/e-i386aout.c b/gas/config/e-i386aout.c
new file mode 100644
index 0000000000..18fdf689c7
--- /dev/null
+++ b/gas/config/e-i386aout.c
@@ -0,0 +1,17 @@
+#include "as.h"
+#include "emul.h"
+
+static const char *
+i386aout_bfd_name ()
+{
+ abort ();
+ return NULL;
+}
+
+#define emul_bfd_name i386aout_bfd_name
+#define emul_format &aout_format_ops
+
+#define emul_name "i386aout"
+#define emul_struct_name i386aout
+#define emul_default_endian 0
+#include "emul-target.h"