Commit 8c1e9afe authored by Karl Heuer's avatar Karl Heuer
Browse files

(unexec): Fix type mismatch.

parent 5c586a6c
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment