http://sourceware.org/bugzilla/show_bug.cgi?id=10238

--- Comment #20 from Ian Lance Taylor <ian at airs dot com> 2012-12-10 17:22:17 
UTC ---
When using gold you need to list the shared libraries that define symbols that
you refer to directly.  You do not need to list libraries that define symbols
that your shared libraries refer to.

> We have always used the facility of indirect linkage
> so a library needs to link in only those libraries it directly calls, and not
> those that those libraries need.

Yes, that is how gold works.

If it's not working for you, then something else is going on.

One possibility is this: gold will warn about undefined symbols in shared
libraries for which gold has seen all the DT_NEEDED entries.  So if your shared
libraries rely on picking up symbols from shared libraries that they do not
explicitly depend on, you will get an undefined symbol error.  You can avoid
that by using the --allow-shlib-undefined option.

Otherwise, you'll need to provide more details.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to