From: Karl Heuer Date: Fri, 12 May 1995 00:12:57 +0000 (+0000) Subject: (unexec): Fix type mismatch. X-Git-Tag: emacs-19.34~4062 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8c1e9afe7ae28c0c8c8a371057cb97bbca3ccc4a;p=emacs.git (unexec): Fix type mismatch. --- 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);