[PATCH v2] [RFC] libdep plugin: fix bugs in parser and drop escaping
Nick Clifton
nickc@redhat.com
Mon Jun 24 14:51:51 GMT 2024
Hi Harmen,
> To me it seems that the current implementation of libdep.so is flawed, it's just
> not comparable to how dynamic libraries are resolved, even though it claims to
> make static linking behave similar to dynamic linking w.r.t. resolving
> dependencies.
Agreed.
I am looking over your patch now, and so far it is looking good.
One thing that did occur to me would be to extend the documentation on the
libdep plugin to describe the problems you mention. We should also extend
the linker's description of the -L option to mention how it interacts with
the libdep plugin. (In case users look there first).
It might also help if the linker had an option to warn if libraries can be
found in multiple different locations. At least that way users might have
the possibility of noticing that there is a problem.
Cheers
Nick
More information about the Binutils
mailing list