changeset 18218:c8bf40360ae7

(unexec): Call update_dynamic_symbols unconditionally. (update_dynamic_symbols): Define unconditionally, but do nothing if __linux__or __NetBSD__.
author Richard M. Stallman <rms@gnu.org>
date Wed, 11 Jun 1997 01:13:32 +0000
parents 13a240aa1960
children aaeaae005e98
files src/unexalpha.c
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/unexalpha.c	Wed Jun 11 00:38:09 1997 +0000
+++ b/src/unexalpha.c	Wed Jun 11 01:13:32 1997 +0000
@@ -398,9 +398,8 @@
 	 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 @@
 
 
 
-
-#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 @@
 
   }
 
+#endif /* not __linux__ and not __NetBSD__ */
 }
 
-#endif /* !__linux__ */
-
 
 /*
  * mark_x