aboutsummaryrefslogtreecommitdiffstats
path: root/src/s/sunos4shr.h
diff options
context:
space:
mode:
authorJim Blandy <[email protected]>1991-12-13 18:49:49 +0000
committerJim Blandy <[email protected]>1991-12-13 18:49:49 +0000
commit20c428fd9d239eca0a835e3b0fe2629e789ce562 (patch)
treec9dc47c923acc0f7db3dd699bd7e38e7b20893cc /src/s/sunos4shr.h
parent20a8832d8461fec6001e0f9d09bbb4731c585a84 (diff)
Initial revision
Diffstat (limited to 'src/s/sunos4shr.h')
-rw-r--r--src/s/sunos4shr.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/s/sunos4shr.h b/src/s/sunos4shr.h
new file mode 100644
index 0000000000..2b665513b1
--- /dev/null
+++ b/src/s/sunos4shr.h
@@ -0,0 +1,30 @@
+#include "bsd4-2.h"
+
+/* Say that the text segment of a.out includes the header;
+ the header actually occupies the first few bytes of the text segment
+ and is counted in hdr.a_text. */
+
+#define O_NDELAY FNDELAY /* Non-blocking I/O (4.2 style) */
+
+/* In SunOS 4.1, a static function called by tzsetwall reportedly
+ clears the byte just past an eight byte region it mallocs, corrupting
+ GNU malloc's memory pool. But Sun's malloc doesn't seem to mind. */
+
+#define SYSTEM_MALLOC
+
+/* Misleading! Actually gets loaded after crt0.o */
+#define START_FILES pre-crt0.o
+
+/*
+ * Kludge! can't get at symbol "start" in std crt0.o
+ * Who the #$%&* decided to remove the __ characters!
+ * Someone needs to fix this in sysdep.c with an #ifdef BROKEN_START in
+ * sysdep.c. We do not use this address so any value should do really. Still
+ * may need it in the future?
+ */
+#define BROKEN_START
+#define TEXT_START 0x2020
+
+#define UNEXEC unexsunos4.o
+#define RUN_TIME_REMAP
+#define LD_CMD cc