summaryrefslogtreecommitdiff
path: root/src/unexfx2800.c
diff options
context:
space:
mode:
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");
+}