diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-10-17 11:50:35 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-10-18 08:01:42 -0300 |
commit | c06e10c8130358c409c1d2837f8171ef70169d03 (patch) | |
tree | 018ed404963690d12012d0418bf1f0d513b54946 /elf | |
parent | dd32e1db386c77c61850a7cbd0c126b7b3c63ece (diff) | |
download | glibc-c06e10c8130358c409c1d2837f8171ef70169d03.zip glibc-c06e10c8130358c409c1d2837f8171ef70169d03.tar.gz glibc-c06e10c8130358c409c1d2837f8171ef70169d03.tar.bz2 |
elf: Do not print the cache entry if --inhibit-cache is used
So --help informs the correct shared library search path.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-usage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/dl-usage.c b/elf/dl-usage.c index 98f0b0d..0431545 100644 --- a/elf/dl-usage.c +++ b/elf/dl-usage.c @@ -99,7 +99,8 @@ print_search_path_for_help (struct dl_main_state *state) if (map != NULL) print_search_path_for_help_1 (map->l_runpath_dirs.dirs); - _dl_printf (" (libraries located via %s)\n", LD_SO_CACHE); + if (!GLRO(dl_inhibit_cache)) + _dl_printf (" (libraries located via %s)\n", LD_SO_CACHE); print_search_path_for_help_1 (__rtld_search_dirs.dirs); } |