diff options
Diffstat (limited to 'elf/dl-init.c')
-rw-r--r-- | elf/dl-init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/elf/dl-init.c b/elf/dl-init.c index c4b1e22152..c1e927180c 100644 --- a/elf/dl-init.c +++ b/elf/dl-init.c @@ -1,5 +1,5 @@ /* Return the next shared object initializer function not yet run. - Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -18,7 +18,7 @@ Boston, MA 02111-1307, USA. */ #include <stddef.h> -#include <elf/ldsodefs.h> +#include <ldsodefs.h> /* Run initializers for MAP and its dependencies, in inverse dependency @@ -88,7 +88,7 @@ _dl_init_next (struct r_scope_elem *searchlist) l->l_name[0] ? l->l_name : _dl_argv[0], "\n\n", NULL); - array = (ElfW(Addr) *) l->l_info[DT_INIT_ARRAY]->d_un.d_ptr; + array = (ElfW(Addr) *) D_PTR (l, l_info[DT_INIT_ARRAY]); return l->l_addr + array[l->l_runcount - 2]; /* NOTREACHED */ } |