[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/31904] libdep.so plugin registers search path after default path
From: |
me at harmenstoppels dot nl |
Subject: |
[Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker |
Date: |
Wed, 26 Jun 2024 13:23:45 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31904
--- Comment #8 from Harmen Stoppels <me at harmenstoppels dot nl> ---
Hi Nick,
I appreciate the patch. Would an additional
`ld_plugin_remove_extra_library_path(const char *path)` be possible so that
> This does however present a problem if multiple archives with
> @samp{__.LIBDEP} entries are present as they will all be handled by the
> libdep plugin and thus they will share library search paths. This could
> result in a library being loaded from an unexpected location.
can be removed from the documentation?
That function would delete the first matching search path added by the plugin.
My only worry with the patch is that if libdep.so proves useful, and it would
ever be promoted to a builtin flag `ld --resolve-static-deps` or even enabled
by default, then `enum search_dir_source` may be hard to remove even though
it's effectively unused.
(Btw, it would be convenient to have an ldd like utility for static archives
later)
Best,
Harmen
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/31904] New: libdep.so plugin does not register search path in bfd linker, me at harmenstoppels dot nl, 2024/06/18
- [Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker, me at harmenstoppels dot nl, 2024/06/20
- [Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker, nickc at redhat dot com, 2024/06/21
- [Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker, me at harmenstoppels dot nl, 2024/06/21
- [Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker, nickc at redhat dot com, 2024/06/24
- [Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker, me at harmenstoppels dot nl, 2024/06/25
- [Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker, nickc at redhat dot com, 2024/06/25
- [Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker, nickc at redhat dot com, 2024/06/25
- [Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker, nickc at redhat dot com, 2024/06/26
- [Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker,
me at harmenstoppels dot nl <=
- [Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker, nickc at redhat dot com, 2024/06/27
- [Bug ld/31904] libdep.so plugin registers search path after default paths in bfd linker, me at harmenstoppels dot nl, 2024/06/28