aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-04-07 10:08:51 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-08-05 19:45:19 +0100
commit93ab84cd80067744fb990d0f420dafc04a18d4cb (patch)
tree61c9d2ce2603d2d1e70cb0828882f41cabb49ae8
parent3eb1c569eb5ab70a27fd4151a101e9d57b57b885 (diff)
downloadglibc-93ab84cd80067744fb990d0f420dafc04a18d4cb.tar
glibc-93ab84cd80067744fb990d0f420dafc04a18d4cb.tar.gz
glibc-93ab84cd80067744fb990d0f420dafc04a18d4cb.tar.bz2
glibc-93ab84cd80067744fb990d0f420dafc04a18d4cb.zip
TODO(l_addr): cheri: rtld: elfptr_t fix in rtld.c program header processing
TODO: depends on l_addr design
-rw-r--r--elf/rtld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index c9c5be0acc..f419dcc95c 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -1157,7 +1157,7 @@ rtld_setup_main_map (struct link_map *main_map)
{
case PT_PHDR:
/* Find out the load address. */
- main_map->l_addr = (ElfW(Addr)) phdr - ph->p_vaddr;
+ main_map->l_addr = (elfptr_t) phdr - ph->p_vaddr;
break;
case PT_DYNAMIC:
/* This tells us where to find the dynamic section,