summaryrefslogtreecommitdiff
path: root/src/unexfx2800.c
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 /src/unexfx2800.c
parent2b7b2f53bcc482696f4859539bf530c5b00c4a0e (diff)
downloademacs-31810cf524f6a02cabde8843f1aa2a1fceea8908.tar.gz
entered into RCS
Diffstat (limited to 'src/unexfx2800.c')
-rw-r--r--src/unexfx2800.c16
1 files changed, 16 insertions, 0 deletions
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");
+}