]> git.eshelyaron.com Git - emacs.git/commitdiff
(unexec): Copy previous change in unexelf.c.
authorRichard M. Stallman <rms@gnu.org>
Wed, 24 Aug 1994 23:42:49 +0000 (23:42 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 24 Aug 1994 23:42:49 +0000 (23:42 +0000)
src/unexsgi.c

index 8a453ba581c794bab79e1bcd76a0135f0c9e80ad..b375ee5a8a11bb72df6716f55bdefd748479d61b 100644 (file)
@@ -738,7 +738,11 @@ unexec (new_name, old_name, data_start, bss_start, entry_address)
         a new section in between.  */
       
       PATCH_INDEX (NEW_SECTION_H (nn).sh_link);
-      PATCH_INDEX (NEW_SECTION_H (nn).sh_info);
+      /* For symbol tables, info is a symbol table index,
+        so don't change it.  */
+      if (NEW_SECTION_H (nn).sh_type != SHT_SYMTAB
+         && NEW_SECTION_H (nn).sh_type != SHT_DYNSYM)
+       PATCH_INDEX (NEW_SECTION_H (nn).sh_info);
       
       /* Now, start to copy the content of sections. */
       if (NEW_SECTION_H (nn).sh_type == SHT_NULL