changeset 1937:087889e85644

(Fforward_comment): New function. (adjust_lnnoptrs): Handle symentry.n_type == 0x2400. (make_hdr) [USG_SHARED_LIBRARIES]: Set bias using bss_start.
author Richard M. Stallman <rms@gnu.org>
date Tue, 23 Feb 1993 05:49:12 +0000
parents 82bbf90208d4
children 1045deef809f
files src/unexec.c
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/unexec.c	Mon Feb 22 16:21:17 1993 +0000
+++ b/src/unexec.c	Tue Feb 23 05:49:12 1993 +0000
@@ -479,7 +479,7 @@
    * space.
    */
 
-  bias = bss_end - (f_ohdr.data_start + f_dhdr.s_size);
+  bias = bss_start - (f_ohdr.data_start + f_dhdr.s_size);
 
 #endif
 
@@ -1024,11 +1024,12 @@
 	{
 	  read (new, &auxentry, AUXESZ);
 	  nsyms++;
-	  if (ISFCN (symentry.n_type)) {
-	    auxentry.x_sym.x_fcnary.x_fcn.x_lnnoptr += bias;
-	    lseek (new, -AUXESZ, 1);
-	    write (new, &auxentry, AUXESZ);
-	  }
+	  if (ISFCN (symentry.n_type) || symentry.n_type == 0x2400)
+	    {
+	      auxentry.x_sym.x_fcnary.x_fcn.x_lnnoptr += bias;
+	      lseek (new, -AUXESZ, 1);
+	      write (new, &auxentry, AUXESZ);
+	    }
 	}
     }
   close (new);