Mercurial > hg > xemacs-beta
diff src/unexalpha.c @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | 972bbb6d6ca2 |
children | 6240c7796c7a |
line wrap: on
line diff
--- a/src/unexalpha.c Mon Aug 13 11:01:58 2007 +0200 +++ b/src/unexalpha.c Mon Aug 13 11:03:08 2007 +0200 @@ -92,11 +92,9 @@ #define DEFAULT_ENTRY_ADDRESS __start #endif -int -unexec (char *new_name, char *a_name, - unsigned long data_start, - unsigned long bss_start, - unsigned long entry_address) +unexec (new_name, a_name, data_start, bss_start, entry_address) + char *new_name, *a_name; + unsigned long data_start, bss_start, entry_address; { int new, old; char * oldptr; @@ -104,6 +102,7 @@ struct stat stat; long pagesize, brk; long newsyms, symrel; + int nread; int i; long vaddr, scnptr; #define BUFSIZE 8192 @@ -210,7 +209,7 @@ nhdr.aout.bsize = 0; if (entry_address == 0) { - extern int DEFAULT_ENTRY_ADDRESS (void); + extern DEFAULT_ENTRY_ADDRESS (); nhdr.aout.entry = (unsigned long)DEFAULT_ENTRY_ADDRESS; } else @@ -366,15 +365,15 @@ */ -int -update_dynamic_symbols ( - char *old, /* Pointer to old executable */ - char *new_name, /* Name of new executable */ - int new, /* File descriptor for new executable */ - long newsyms, /* Offset of Symbol table in new executable */ - int nsyms, /* Number of symbol table entries */ - long symoff, /* Offset of External Symbols in old file */ - long stroff) /* Offset of string table in old file */ + +update_dynamic_symbols (old, new_name, new, newsyms, nsyms, symoff, stroff) + char *old; /* Pointer to old executable */ + char *new_name; /* Name of new executable */ + int new; /* File descriptor for new executable */ + long newsyms; /* Offset of Symbol table in new executable */ + int nsyms; /* Number of symbol table entries */ + long symoff; /* Offset of External Symbols in old file */ + long stroff; /* Offset of string table in old file */ { long i; int found = 0;