summary refs log tree commit diff
path: root/elf/rtld.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2010-09-15 07:20:57 -0700
committerUlrich Drepper <drepper@redhat.com>2010-09-15 07:20:57 -0700
commitbc5fb0374c3ce6eca92f44d13a55b066e707c4a0 (patch)
treeee07a8ffc9fbd9b51873dbd01da87da7b78a1b70 /elf/rtld.c
parente66e7419a6f58200eec6941b14e2dcff9875cc6c (diff)
downloadglibc-bc5fb0374c3ce6eca92f44d13a55b066e707c4a0.tar.gz
glibc-bc5fb0374c3ce6eca92f44d13a55b066e707c4a0.tar.xz
glibc-bc5fb0374c3ce6eca92f44d13a55b066e707c4a0.zip
Don't try to free rpath strings allocated during startup
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index 90f3ff126e..5ecc4fe711 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -2291,6 +2291,10 @@ ERROR: ld.so: object '%s' cannot be loaded as audit interface: %s; ignored.\n",
 			  lossage);
     }
 
+  /* Remember the last search directory added at startup, now that
+     malloc will no longer be the one from dl-minimal.c.  */
+  GLRO(dl_init_all_dirs) = GL(dl_all_dirs);
+
   if (! prelinked && rtld_multiple_ref)
     {
       /* There was an explicit ref to the dynamic linker as a shared lib.