diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-10-08 10:57:10 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-10-08 14:29:49 +0200 |
commit | 27316f4a23efdc90bdfe4569a6c4b7e27941606e (patch) | |
tree | 89958b354e27b96a2dda1315e347b3a548c2be9f /elf/dl-load.c | |
parent | 9590a71adcf134c77f2d0f5711b0d6ab1b4193e6 (diff) | |
download | glibc-27316f4a23efdc90bdfe4569a6c4b7e27941606e.zip glibc-27316f4a23efdc90bdfe4569a6c4b7e27941606e.tar.gz glibc-27316f4a23efdc90bdfe4569a6c4b7e27941606e.tar.bz2 |
elf: Record whether paths come from LD_LIBRARY_PATH or --library-path
This allows more precise LD_DEBUG diagnostics.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r-- | elf/dl-load.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index 5ba117d..5fbb8c9 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -682,7 +682,7 @@ cache_rpath (struct link_map *l, void -_dl_init_paths (const char *llp) +_dl_init_paths (const char *llp, const char *source) { size_t idx; const char *strp; @@ -820,7 +820,7 @@ _dl_init_paths (const char *llp) } (void) fillin_rpath (llp_tmp, env_path_list.dirs, ":;", - "LD_LIBRARY_PATH", NULL, l); + source, NULL, l); if (env_path_list.dirs[0] == NULL) { |