cpukit/libdl: Resolve size mismatch warnings

Resolve warnings about mismatched pointer and integer sizes in AArch64
libdl when building with the ILP32 ABI.
This commit is contained in:
Kinsey Moore
2023-04-04 16:22:13 -05:00
committed by Joel Sherrill
parent 675a741023
commit 05dd54d11c
3 changed files with 20 additions and 19 deletions

View File

@@ -192,7 +192,7 @@ rtems_rtl_elf_find_symbol (rtems_rtl_obj* obj,
if (!*symbol)
return false;
*value = (Elf_Addr) (*symbol)->value;
*value = (Elf_Addr)(uintptr_t) (*symbol)->value;
return true;
}
@@ -202,7 +202,7 @@ rtems_rtl_elf_find_symbol (rtems_rtl_obj* obj,
if (!sect)
return false;
*value = sym->st_value + (Elf_Addr) sect->base;
*value = sym->st_value + (Elf_Addr)(uintptr_t) sect->base;
return true;
}