]> git.eshelyaron.com Git - emacs.git/commitdiff
(unexec): Fix type mismatch.
authorKarl Heuer <kwzh@gnu.org>
Fri, 12 May 1995 00:12:57 +0000 (00:12 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 12 May 1995 00:12:57 +0000 (00:12 +0000)
src/unexelf.c

index 5ce8050dcc8e42266c39fc20ae17b628d7138f59..edfaedb1dd213dc8710704170292f98969e723d6 100644 (file)
@@ -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);