Mercurial > emacs
changeset 8617:3444e68d8b38
(unexec): Copy previous change in unexelf.c.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 24 Aug 1994 23:42:49 +0000 |
parents | b9a9389714e1 |
children | 59c582e9f4f6 |
files | src/=unexsgi.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/=unexsgi.c Wed Aug 24 23:31:55 1994 +0000 +++ b/src/=unexsgi.c Wed Aug 24 23:42:49 1994 +0000 @@ -738,7 +738,11 @@ 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