-diff -ru glibc-2.5-ORIG/elf/dl-load.c glibc-2.5/elf/dl-load.c
---- glibc-2.5-ORIG/elf/dl-load.c	2007-09-25 17:20:30.000000000 +0300
-+++ glibc-2.5/elf/dl-load.c	2009-10-22 15:00:02.000000000 +0300
+--- a/elf/dl-load.c	2007-09-25 17:20:30.000000000 +0300
++++ b/elf/dl-load.c	2009-11-17 16:12:20.000000000 +0200
 @@ -388,7 +388,8 @@
  
  static struct r_search_path_elem **

 {
   char *cp;
   size_t nelems = 0;
@@ -464,22 +465,43 @@
 	  size_t cnt;
 	  enum r_dir_status init_val;

 /* The map for the object we will profile.  */
 struct link_map *_dl_profile_map;
 
--- a/elf/rtld.c	2009-10-22 14:40:05.000000000 +0300
+++ b/elf/rtld.c	2009-10-22 14:50:47.000000000 +0300
@@ -951,6 +951,15 @@
 	    _dl_argc -= 2;
 	    INTUSE(_dl_argv) += 2;
