Tools to modify shared libraries
Joe Kelsey
joek at mail.flyingcroc.net
Tue Jun 17 09:31:56 PDT 2003
Marcel Moolenaar wrote:
> Yes it can. Symbol resolution is a fundamental part in linking.
> Hence, the linker has all the information it needs to filter the
> gratuitously long list of libraries programmers tend to give it
> and keep the libraries that actually contributed to the link.
>
I know of no way to do this in the case of shared libraries. When
linking shared libraries, the linker *cannot* resolve any references to
other shared libraries other than list them in the .dynamic section with
some sort of tag such as DT_NEEDED. Please explain to me how the linker
can prune the shared library list at link time.
Sorry that this has veered off into a dead-end. I promise to cut the
mailing list from any further discussions on this dead-end thread.
/Joe
More information about the freebsd-stable
mailing list