From 019f2b8f14827d383ca22ff918388b450ab57828 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 24 Aug 1994 23:42:49 +0000 Subject: [PATCH] (unexec): Copy previous change in unexelf.c. --- src/unexsgi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5