projects
/
chise
/
xemacs-chise.git-
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update.
[chise/xemacs-chise.git-]
/
src
/
unexalpha.c
diff --git
a/src/unexalpha.c
b/src/unexalpha.c
index
3a1a12f
..
b8705f9
100644
(file)
--- a/
src/unexalpha.c
+++ b/
src/unexalpha.c
@@
-31,6
+31,7
@@
Boston, MA 02111-1307, USA. */
#include <sys/stat.h>
#include <sys/mman.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <stdio.h>
+#include <errno.h>
#include <varargs.h>
#include <filehdr.h>
#include <aouthdr.h>
#include <varargs.h>
#include <filehdr.h>
#include <aouthdr.h>
@@
-54,11
+55,6
@@
static void mark_x (char *);
if (lseek (_fd, _position, L_SET) != _position) \
fatal_unexec (_error_message, _error_arg);
if (lseek (_fd, _position, L_SET) != _position) \
fatal_unexec (_error_message, _error_arg);
-extern int errno;
-extern char *strerror ();
-
-void *sbrk();
-
#define EEOF -1
static struct scnhdr *text_section;
#define EEOF -1
static struct scnhdr *text_section;
@@
-85,12
+81,13
@@
struct headers {
};
};
-
/* Define name of label for entry point for the dumped executable. */
#ifndef DEFAULT_ENTRY_ADDRESS
#define DEFAULT_ENTRY_ADDRESS __start
#endif
/* Define name of label for entry point for the dumped executable. */
#ifndef DEFAULT_ENTRY_ADDRESS
#define DEFAULT_ENTRY_ADDRESS __start
#endif
+EXTERN_C int DEFAULT_ENTRY_ADDRESS (void);
+
\f
int
unexec (char *new_name, char *a_name,
\f
int
unexec (char *new_name, char *a_name,
@@
-210,7
+207,6
@@
unexec (char *new_name, char *a_name,
nhdr.aout.bsize = 0;
if (entry_address == 0)
{
nhdr.aout.bsize = 0;
if (entry_address == 0)
{
- extern DEFAULT_ENTRY_ADDRESS ();
nhdr.aout.entry = (unsigned long)DEFAULT_ENTRY_ADDRESS;
}
else
nhdr.aout.entry = (unsigned long)DEFAULT_ENTRY_ADDRESS;
}
else