X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Funexalpha.c;h=b8705f91deb915a07b3bf768182914dd48d619eb;hb=6f6c2759db74292539455548959e9668891f6962;hp=9602c1077a02b0b62ccefdfecf5bf59f533689b3;hpb=b5eeb6918c29470b36f8461c402eb0c65cb19bd2;p=chise%2Fxemacs-chise.git.1 diff --git a/src/unexalpha.c b/src/unexalpha.c index 9602c10..b8705f9 100644 --- a/src/unexalpha.c +++ b/src/unexalpha.c @@ -55,8 +55,6 @@ static void mark_x (char *); if (lseek (_fd, _position, L_SET) != _position) \ fatal_unexec (_error_message, _error_arg); -void *sbrk(); - #define EEOF -1 static struct scnhdr *text_section; @@ -83,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 +EXTERN_C int DEFAULT_ENTRY_ADDRESS (void); + int unexec (char *new_name, char *a_name, @@ -208,7 +207,6 @@ unexec (char *new_name, char *a_name, nhdr.aout.bsize = 0; if (entry_address == 0) { - extern int DEFAULT_ENTRY_ADDRESS (void); nhdr.aout.entry = (unsigned long)DEFAULT_ENTRY_ADDRESS; } else