[PATCH] Fix typo in add_dependency

Jakub Jelinek jakub@redhat.com
Tue May 25 12:49:00 GMT 2004


Hi!

The code was mistakenly setting DF_BIND_NOW (8) in l_flags
instead of DF_1_NODELETE (8) in l_flags_1.

2004-05-24  Jakub Jelinek  <jakub@redhat.com>

	* elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
	in l_flags_1, not in l_flags.

--- libc/elf/dl-lookup.c.jj	2004-05-18 10:52:24.000000000 +0200
+++ libc/elf/dl-lookup.c	2004-05-24 13:24:12.624800758 +0200
@@ -108,7 +108,7 @@ add_dependency (struct link_map *undef_m
       || (undef_map->l_flags_1 & DF_1_NODELETE) != 0)
     {
       ++map->l_opencount;
-      map->l_flags |= DF_1_NODELETE;
+      map->l_flags_1 |= DF_1_NODELETE;
       goto out;
     }
 

	Jakub



More information about the Libc-hacker mailing list