]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
TODO(l_addr): cheri: rtld: elfptr_t fix in rtld.c program header processing
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 7 Apr 2022 09:08:51 +0000 (10:08 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 5 Aug 2022 18:45:19 +0000 (19:45 +0100)
TODO: depends on l_addr design

elf/rtld.c

index c9c5be0acc48e9ce8d092f70b0c9b0e298ccf9c4..f419dcc95ca2454887dd5b95b7d667337c860948 100644 (file)
@@ -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,