From 8c1e9afe7ae28c0c8c8a371057cb97bbca3ccc4a Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Fri, 12 May 1995 00:12:57 +0000 Subject: [PATCH] (unexec): Fix type mismatch. --- src/unexelf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unexelf.c b/src/unexelf.c index 5ce8050dcc8..edfaedb1dd2 100644 --- a/src/unexelf.c +++ b/src/unexelf.c @@ -791,7 +791,8 @@ unexec (new_name, old_name, data_start, bss_start, entry_address) && NEW_SECTION_H (n).sh_type != SHT_SYMTAB) continue; - symnames = NEW_SECTION_H (NEW_SECTION_H (n).sh_link).sh_offset + new_base; + symnames = ((byte *) new_base + + NEW_SECTION_H (NEW_SECTION_H (n).sh_link).sh_offset); symp = (Elf32_Sym *) (NEW_SECTION_H (n).sh_offset + new_base); symendp = (Elf32_Sym *) ((byte *)symp + NEW_SECTION_H (n).sh_size); -- 2.39.2