aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-support.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/dl-support.c
parente66e7419a6f58200eec6941b14e2dcff9875cc6c (diff)
downloadglibc-bc5fb0374c3ce6eca92f44d13a55b066e707c4a0.zip
glibc-bc5fb0374c3ce6eca92f44d13a55b066e707c4a0.tar.gz
glibc-bc5fb0374c3ce6eca92f44d13a55b066e707c4a0.tar.bz2
Don't try to free rpath strings allocated during startup
Diffstat (limited to 'elf/dl-support.c')
-rw-r--r--elf/dl-support.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/dl-support.c b/elf/dl-support.c
index f94d2c4..5897b32 100644
--- a/elf/dl-support.c
+++ b/elf/dl-support.c
@@ -264,6 +264,9 @@ _dl_non_dynamic_init (void)
objects. */
_dl_init_paths (getenv ("LD_LIBRARY_PATH"));
+ /* Remember the last search directory added at startup. */
+ _dl_init_all_dirs = GL(dl_all_dirs);
+
_dl_lazy = *(getenv ("LD_BIND_NOW") ?: "") == '\0';
_dl_bind_not = *(getenv ("LD_BIND_NOT") ?: "") != '\0';