libelf/libelf_symbols.c: Fix compilation warning about void* arithmetics

Fixes minor issue with a trace (build failure with -Werror):
libelf/libelf_symbols.c:310:41: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
  310 |               (uintptr_t)(sym->st_value + symbol->sym_value));
This commit is contained in:
Ville Juven 2022-09-28 12:23:09 +03:00 committed by Xiang Xiao
parent 386547676d
commit 7c003162a6
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ int elf_symvalue(FAR struct elf_loadinfo_s *loadinfo, FAR Elf_Sym *sym,
"%08" PRIxPTR "+%08" PRIxPTR "=%08" PRIxPTR "\n",
loadinfo->iobuffer, (uintptr_t)sym->st_value,
(uintptr_t)symbol->sym_value,
(uintptr_t)(sym->st_value + symbol->sym_value));
(uintptr_t)(sym->st_value + (uintptr_t)symbol->sym_value));
sym->st_value += ((uintptr_t)symbol->sym_value);
}