From bd7829a44da56654a254dc3967f7266f27b63bc3 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 26 Mar 2020 15:44:54 +0900 Subject: [PATCH] modlib: Don't truncate 64-bit values --- libs/libc/modlib/modlib_symbols.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/modlib/modlib_symbols.c b/libs/libc/modlib/modlib_symbols.c index 0723e1774e..a3eed52b44 100644 --- a/libs/libc/modlib/modlib_symbols.c +++ b/libs/libc/modlib/modlib_symbols.c @@ -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;