about summary refs log tree commit diff
path: root/elf/dl-load.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-10-24 01:02:15 +0000
committerUlrich Drepper <drepper@redhat.com>2000-10-24 01:02:15 +0000
commita881e0a074e448f282e44b1d172b46199697755b (patch)
tree85652f02c63ce55c72f4366a8bf6a48758cba00b /elf/dl-load.c
parentc41c89d35db92458777bec25cf2037e3e91a96bb (diff)
downloadglibc-a881e0a074e448f282e44b1d172b46199697755b.tar.gz
glibc-a881e0a074e448f282e44b1d172b46199697755b.tar.xz
glibc-a881e0a074e448f282e44b1d172b46199697755b.zip
Update.
	* include/link.h (struct link_map): New bit field l_faked.
	* elf/dl-deps.c: Use l_faked field in struct link_map instead of
	the magic l_opencount==0.
	* elf/dl-load.c: Likewise.
	* elf/dl-version.c: Likewise.
	* elf/rtld.c: Likewise.
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r--elf/dl-load.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 6f5f33657a..bb3a2e3187 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -1679,10 +1679,10 @@ _dl_map_object (struct link_map *loader, const char *name, int preloaded,
 	      || (l = _dl_new_object (name_copy, name, type, loader)) == NULL)
 	    _dl_signal_error (ENOMEM, name,
 			      N_("cannot create shared object descriptor"));
-	  /* We use an opencount of 0 as a sign for the faked entry.
-	     Since the descriptor is initialized with zero we do not
+	  /* Signal that this is a faked entry.  */
+	  l->l_faked = 1;
+	  /* Since the descriptor is initialized with zero we do not
 	     have do this here.
-	  l->l_opencount = 0;
 	  l->l_reserved = 0; */
 	  l->l_buckets = &dummy_bucket;
 	  l->l_nbuckets = 1;