diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-06-11 01:13:32 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-06-11 01:13:32 +0000 |
commit | 78f208be3e3c3d70eeccf62ae7be45506b7e7f11 (patch) | |
tree | df33f7b365302d86d23cb282df04ea31a5a5215b /src/unexalpha.c | |
parent | a40c79eead5977f3f8a1874307d388b99fff7d9b (diff) | |
download | emacs-78f208be3e3c3d70eeccf62ae7be45506b7e7f11.tar.gz |
(unexec): Call update_dynamic_symbols unconditionally.
(update_dynamic_symbols): Define unconditionally, but do nothing
if __linux__or __NetBSD__.
Diffstat (limited to 'src/unexalpha.c')
-rw-r--r-- | src/unexalpha.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/unexalpha.c b/src/unexalpha.c index 6fe97e6e1b3..c0d3b359b62 100644 --- a/src/unexalpha.c +++ b/src/unexalpha.c @@ -398,9 +398,8 @@ unexec (new_name, a_name, data_start, bss_start, entry_address) stat.st_size - ohdr.fhdr.f_symptr - cbHDRR, "writing symbol table of %s", new_name); -#ifndef __linux__ + update_dynamic_symbols (oldptr, new_name, new, nhdr.aout); -#endif #undef symhdr @@ -415,15 +414,14 @@ unexec (new_name, a_name, data_start, bss_start, entry_address) - -#ifndef __linux__ - update_dynamic_symbols (old, new_name, new, aout) char *old; /* Pointer to old executable */ char *new_name; /* Name of new executable */ int new; /* File descriptor for new executable */ struct aouthdr aout; /* a.out info from the file header */ { +#if !defined (__linux__) && !defined (__NetBSD__) + typedef struct dynrel_info { char * addr; unsigned type:8; @@ -492,10 +490,9 @@ update_dynamic_symbols (old, new_name, new, aout) } +#endif /* not __linux__ and not __NetBSD__ */ } -#endif /* !__linux__ */ - /* * mark_x |