  
        if (env_path_list.dirs[0] == NULL)
  	{
-diff -ru glibc-2.5-ORIG/elf/dl-support.c glibc-2.5/elf/dl-support.c
---- glibc-2.5-ORIG/elf/dl-support.c	2007-09-25 17:20:30.000000000 +0300
-+++ glibc-2.5/elf/dl-support.c	2009-10-22 14:51:01.000000000 +0300
+--- a/elf/dl-support.c	2007-09-25 17:20:30.000000000 +0300
++++ b/elf/dl-support.c	2009-10-22 14:51:01.000000000 +0300
 @@ -56,6 +56,9 @@
     ignored.  */
  const char *_dl_inhibit_rpath;

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
@@ -388,7 +388,8 @@
 
 static struct r_search_path_elem **

 /* 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;
