aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-iteratephdr.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-16 07:00:05 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-16 07:00:05 +0000
commit553eca268c4d06b0c0c5966b1b8a0b01cd80cc02 (patch)
treece87efe533fc6249ec0f9fb9fda0a6e775a34c29 /elf/dl-iteratephdr.c
parent452aea842fc43f2652ec352ab71e855e69057e5d (diff)
downloadglibc-553eca268c4d06b0c0c5966b1b8a0b01cd80cc02.tar
glibc-553eca268c4d06b0c0c5966b1b8a0b01cd80cc02.tar.gz
glibc-553eca268c4d06b0c0c5966b1b8a0b01cd80cc02.tar.bz2
glibc-553eca268c4d06b0c0c5966b1b8a0b01cd80cc02.zip
Update.
* elf/dl-iteratephdr.c (__dl_iterate_phdr): Don't skip dynamic linker's map. * elf/rtld.c (dl_main): Initialize l_phdr and l_phnum of of the dynamic linker's map.
Diffstat (limited to 'elf/dl-iteratephdr.c')
-rw-r--r--elf/dl-iteratephdr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/elf/dl-iteratephdr.c b/elf/dl-iteratephdr.c
index c374baaa98..dccaf0aff8 100644
--- a/elf/dl-iteratephdr.c
+++ b/elf/dl-iteratephdr.c
@@ -1,5 +1,5 @@
/* Get loaded objects program headers.
- Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>, 2001.
@@ -36,9 +36,6 @@ __dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info,
for (l = GL(dl_loaded); l != NULL; l = l->l_next)
{
- /* Skip the dynamic linker. */
- if (l->l_phdr == NULL)
- continue;
info.dlpi_addr = l->l_addr;
info.dlpi_name = l->l_name;
info.dlpi_phdr = l->l_phdr;