summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl/rtl-elf.c
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2023-04-04 16:22:13 -0500
committerJoel Sherrill <joel@rtems.org>2023-04-05 08:19:09 -0500
commit05dd54d11c85751ff10e10bb50ae0e506042d5b2 (patch)
tree7aadef1c45e6559e80b25d68040d390d9dbb5f22 /cpukit/libdl/rtl-elf.c
parentbsp/qoriq: Build VME Tundra Tsi148 driver (diff)
downloadrtems-05dd54d11c85751ff10e10bb50ae0e506042d5b2.tar.bz2
cpukit/libdl: Resolve size mismatch warnings
Resolve warnings about mismatched pointer and integer sizes in AArch64 libdl when building with the ILP32 ABI.
Diffstat (limited to 'cpukit/libdl/rtl-elf.c')
-rw-r--r--cpukit/libdl/rtl-elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libdl/rtl-elf.c b/cpukit/libdl/rtl-elf.c
index 8a21c5df73..5754070518 100644
--- a/cpukit/libdl/rtl-elf.c
+++ b/cpukit/libdl/rtl-elf.c
@@ -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;
}