summaryrefslogtreecommitdiff
path: root/ld/writeemu.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/writeemu.c')
-rw-r--r--ld/writeemu.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/writeemu.c b/ld/writeemu.c
new file mode 100644
index 0000000..b0438fc
--- /dev/null
+++ b/ld/writeemu.c
@@ -0,0 +1,20 @@
+/*
+ * This uses a special version of writebin for bug compatibility with
+ * the old bin86 package.
+ *
+ * This _should_ be replaced by a function that writes out a as86 object
+ * but then it would completely **** up dosemu compiles.
+ *
+ * NOTE: A some time I intend to replace this with a routine that generates
+ * an as86 object file.
+ */
+
+#undef A_OUT_INCL
+#define A_OUT_INCL "rel_aout.h"
+#define BSD_A_OUT 1
+#define FILEHEADERLENGTH 32
+#define ELF_SYMS 0
+
+#define FUNCNAME write_dosemu
+
+#include "writebin.c"