diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-08-24 23:42:49 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-08-24 23:42:49 +0000 |
commit | 99cf1cd1f5b59be119f51a4b8758b7951caa5ffb (patch) | |
tree | 5062a29dc77a3d1c99ebb3fe994754c71679b5be /src/=unexsgi.c | |
parent | 86761f39438a3a2fe99c5cf6c7afe7d2d18a734e (diff) | |
download | emacs-99cf1cd1f5b59be119f51a4b8758b7951caa5ffb.tar.gz |
(unexec): Copy previous change in unexelf.c.
Diffstat (limited to 'src/=unexsgi.c')
-rw-r--r-- | src/=unexsgi.c | 6 |
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) 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 |