bug-binutils
[Top][All Lists]
Advanced

[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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]