summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1992-01-31 21:19:17 +0000
committerJim Blandy <jimb@redhat.com>1992-01-31 21:19:17 +0000
commit31810cf524f6a02cabde8843f1aa2a1fceea8908 (patch)
treeb68088a1ea4b7a2875746fa65560ce4e9b4aaffa
parent2b7b2f53bcc482696f4859539bf530c5b00c4a0e (diff)
downloademacs-31810cf524f6a02cabde8843f1aa2a1fceea8908.tar.gz
entered into RCS
-rw-r--r--src/m/mips4.h4
-rw-r--r--src/s/isc2-2.h12
-rw-r--r--src/unexfx2800.c16
3 files changed, 31 insertions, 1 deletions
diff --git a/src/m/mips4.h b/src/m/mips4.h
index 91cda937841..c334905fe2e 100644
--- a/src/m/mips4.h
+++ b/src/m/mips4.h
@@ -14,11 +14,15 @@ NOTE-END */
/* Define MIPS2 if you have an R6000 or R4000. */
/* #define MIPS2 */
+#ifdef __GNUC__
+#define C_DEBUG_SWITCH -g -O
+#else
#ifdef MIPS2
#define C_DEBUG_SWITCH -systype bsd43 -O -Olimit 791 -g3 -mips2
#else
#define C_DEBUG_SWITCH -systype bsd43 -O -Olimit 791 -g3
#endif
+#endif
#ifdef TERMINFO
#undef TERMINFO
diff --git a/src/s/isc2-2.h b/src/s/isc2-2.h
index 907974abd1f..a8a53310f5a 100644
--- a/src/s/isc2-2.h
+++ b/src/s/isc2-2.h
@@ -7,7 +7,17 @@
#define HAVE_RENAME
#define HAVE_CLOSEDIR
#define MAXNAMLEN 512
-#define LIB_STANDARD -lcposix -lc
+#define LIB_STANDARD -lPW -lcposix -lc
#define O_NDELAY O_NONBLOCK
#define MEMORY_IN_STRING_H
#undef SIGTSTP
+
+/* This communicates with m-intel386.h. */
+#define DONT_DEFINE_SIGNAL
+
+/* May be needed to avoid undefined symbols
+ such as gethostname, inet_addr, gethostbyname, socket, connect... */
+#define LIBS_SYSTEM -linet
+
+/* This system has job control. */
+#undef NOMULTIPLEJOBS
diff --git a/src/unexfx2800.c b/src/unexfx2800.c
new file mode 100644
index 00000000000..89e14e678d8
--- /dev/null
+++ b/src/unexfx2800.c
@@ -0,0 +1,16 @@
+/* Unexec for the Alliant FX/2800. */
+
+#include <stdio.h>
+
+unexec (new_name, a_name, data_start, bss_start, entry_address)
+ char *new_name, *a_name;
+ unsigned data_start, bss_start, entry_address;
+{
+ int stat;
+
+ stat = elf_write_modified_data (a_name, new_name);
+ if (stat < 0)
+ perror ("emacs: elf_write_modified_data");
+ else if (stat > 0)
+ fprintf (stderr, "Unspecified error from elf_write_modified_data.\n");
+}