summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/dlfcn.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/dlfcn.c')
-rw-r--r--lib/libc/gen/dlfcn.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c
index 7d28797..ad24bb4 100644
--- a/lib/libc/gen/dlfcn.c
+++ b/lib/libc/gen/dlfcn.c
@@ -149,8 +149,10 @@ static void
dl_init_phdr_info(void)
{
Elf_Auxinfo *auxp;
+ size_t phent;
unsigned int i;
+ phent = 0;
for (auxp = __elf_aux_vector; auxp->a_type != AT_NULL; auxp++) {
switch (auxp->a_type) {
case AT_BASE:
@@ -163,6 +165,9 @@ dl_init_phdr_info(void)
phdr_info.dlpi_phdr =
(const Elf_Phdr *)auxp->a_un.a_ptr;
break;
+ case AT_PHENT:
+ phent = auxp->a_un.a_val;
+ break;
case AT_PHNUM:
phdr_info.dlpi_phnum = (Elf_Half)auxp->a_un.a_val;
break;
@@ -228,10 +233,3 @@ _rtld_get_stack_prot(void)
return (PROT_EXEC | PROT_READ | PROT_WRITE);
}
-#pragma weak _rtld_is_dlopened
-int
-_rtld_is_dlopened(void *arg)
-{
-
- return (0);
-}
OpenPOWER on IntegriCloud