usage of the libdep plugin of LD
Howard Chu
hyc@symas.com
Mon Feb 13 17:12:47 GMT 2023
Marco Frigerio via Binutils wrote:
> Hi,
> Is there a way of making sure that the libdep plugin of LD is used?
Not by default. You need to make sure ld is invoked with "-plugin .../libdep_plugin.so" yourself.
Easiest way might be a wrapper script.
>
> I have a static .a library with the __.LIBDEP section, but linking it to an executable raises linking errors.
>
> All the errors go away if I specify manually the same '-lXXX' which is written in __.LIBDEP, suggesting that the latter is ignored.
>
> GNU Binutils v 2.38, gcc 11.3.0, on Ubuntu Linux.
>
> I could not find anything in the man pages, and the LD docs (section 4) do not say anything about enabling/loading plugins.
>
> I hope this is the right place for this kind of questions, my apologies otherwise.
> Thanks
> - MF
>
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
More information about the Binutils
mailing list