# HG changeset patch # User Karl Heuer # Date 800237577 0 # Node ID b322ac77dadc27b2a928f41c458265f26f7df0fa # Parent 58e13b7bc23244c1590290d9b844f32c9c319e07 (unexec): Fix type mismatch. diff -r 58e13b7bc232 -r b322ac77dadc src/unexelf.c --- a/src/unexelf.c Thu May 11 22:19:56 1995 +0000 +++ b/src/unexelf.c Fri May 12 00:12:57 1995 +0000 @@ -791,7 +791,8 @@ && 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);