summaryrefslogtreecommitdiff
path: root/ld/byteord.h
diff options
context:
space:
mode:
Diffstat (limited to 'ld/byteord.h')
-rw-r--r--ld/byteord.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/byteord.h b/ld/byteord.h
new file mode 100644
index 0000000..57d17b9
--- /dev/null
+++ b/ld/byteord.h
@@ -0,0 +1,20 @@
+/* byteord.h - byte order dependencies for C compiler, assembler, linker */
+
+/* Copyright (C) 1994 Bruce Evans */
+
+/* These are for the targets of everything and for linker source too. */
+
+#ifdef I8086
+# define BIG_ENDIAN 0
+# define LONG_BIG_ENDIAN 0 /* except longs are back to front for Xenix */
+#endif
+
+#ifdef I80386
+# define BIG_ENDIAN 0
+# define LONG_BIG_ENDIAN 0
+#endif
+
+#ifdef MC6809
+# define BIG_ENDIAN 1 /* byte order in words is high-low */
+# define LONG_BIG_ENDIAN 1 /* byte order in longs is high-low */
+#endif