aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-24 23:42:49 +0000
committerRichard M. Stallman1994-08-24 23:42:49 +0000
commit019f2b8f14827d383ca22ff918388b450ab57828 (patch)
tree747602901ef195a9ae122d88e269b37337f9cacc /src
parentd91f490d2b745c44ed3be3d6ad297996fc48eaa7 (diff)
downloademacs-019f2b8f14827d383ca22ff918388b450ab57828.tar.gz
emacs-019f2b8f14827d383ca22ff918388b450ab57828.zip
(unexec): Copy previous change in unexelf.c.
Diffstat (limited to 'src')
-rw-r--r--src/unexsgi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/unexsgi.c b/src/unexsgi.c
index 8a453ba581c..b375ee5a8a1 100644
--- a/src/unexsgi.c
+++ b/src/unexsgi.c
@@ -738,7 +738,11 @@ unexec (new_name, old_name, data_start, bss_start, entry_address)
738 a new section in between. */ 738 a new section in between. */
739 739
740 PATCH_INDEX (NEW_SECTION_H (nn).sh_link); 740 PATCH_INDEX (NEW_SECTION_H (nn).sh_link);
741 PATCH_INDEX (NEW_SECTION_H (nn).sh_info); 741 /* For symbol tables, info is a symbol table index,
742 so don't change it. */
743 if (NEW_SECTION_H (nn).sh_type != SHT_SYMTAB
744 && NEW_SECTION_H (nn).sh_type != SHT_DYNSYM)
745 PATCH_INDEX (NEW_SECTION_H (nn).sh_info);
742 746
743 /* Now, start to copy the content of sections. */ 747 /* Now, start to copy the content of sections. */
744 if (NEW_SECTION_H (nn).sh_type == SHT_NULL 748 if (NEW_SECTION_H (nn).sh_type == SHT_NULL