This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Bug in dynamic linker
"H . J . Lu" <hjl@lucon.org> writes:
> > I agree with Mark. The proposed change is creating much more severe
> > problems than it's solving.
>
> Please show me the problem. A testcase will be very nice.
Mark described it:
- liba.so is built using libb.so (i.e., has a DT_NEEDED entry)
- program foo is linked with liba.so
- new version of liba.so out; same interface, but does not use libb.so
anymore; libb.so is removed
The program will not run anymore despite the fact that the author of
liba.so took care of keeping the interface.
This is not an uncommon situation. More often unintentional then
intentional, people are linking libs with unnecessary others libs
(e.g., packages using autoconf often link against libelf even though
it's not needed). Since ld is always adding these libs ad DT_NEEDED
(not only if they are actually used) you'll get the situation
described above.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------