libelf: Don't truncate 64-bit values

This commit is contained in:
YAMAMOTO Takashi 2020-03-26 16:01:02 +09:00 committed by Xiang Xiao
parent bd7829a44d
commit bb09d564db

View File

@ -325,7 +325,7 @@ int elf_symvalue(FAR struct elf_loadinfo_s *loadinfo, FAR Elf_Sym *sym,
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;