mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
libelf: Don't truncate 64-bit values
This commit is contained in:
committed by
Xiang Xiao
parent
bd7829a44d
commit
bb09d564db
@@ -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,
|
loadinfo->iobuffer, sym->st_value, symbol->sym_value,
|
||||||
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;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user