modlib: Don't truncate 64-bit values

This commit is contained in:
YAMAMOTO Takashi 2020-03-26 15:44:54 +09:00 committed by Xiang Xiao
parent f8077022bd
commit bd7829a44d

View File

@ -418,7 +418,7 @@ int modlib_symvalue(FAR struct module_s *modp,
loadinfo->iobuffer, sym->st_value, symbol->sym_value,
sym->st_value + symbol->sym_value);
sym->st_value += (Elf_Word)((uintptr_t)symbol->sym_value);
sym->st_value += ((uintptr_t)symbol->sym_value);
}
break;