This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.10-192-gc15b1d2


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  c15b1d20cd31d9c1498a1863a0a65ecfec4f2513 (commit)
      from  fe4d2935e8d984d1d6c314eec557921f2c851224 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=c15b1d20cd31d9c1498a1863a0a65ecfec4f2513

commit c15b1d20cd31d9c1498a1863a0a65ecfec4f2513
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Thu Jul 23 07:40:56 2009 -0700

    Minor optimization of unloading prevention patch.
    
    References to unique symbols from copy relocations can only come
    from executables which cannot be unloaded anyway.  Optimize the
    code to set the unload flag a bit.

diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c
index 61e8d7f..18f7288 100644
--- a/elf/dl-lookup.c
+++ b/elf/dl-lookup.c
@@ -331,12 +331,12 @@ do_lookup_x (const char *undef_name, uint_fast32_t new_hash,
 			  {
 			    table[idx].sym = sym;
 			    table[idx].map = map;
-			  }
 
-			if (table[idx].map->l_type == lt_loaded)
-			  /* Make sure we don't unload this object by
-			     setting the appropriate flag.  */
-			  table[idx].map->l_flags_1 |= DF_1_NODELETE;
+			    if (map->l_type == lt_loaded)
+			      /* Make sure we don't unload this object by
+				 setting the appropriate flag.  */
+			      map->l_flags_1 |= DF_1_NODELETE;
+			  }
 
 			return;
 		      }

-----------------------------------------------------------------------

Summary of changes:
 elf/dl-lookup.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]