[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/10238] Gold linker does not resolve symbols using indirect dep
ian at airs dot com
[Bug gold/10238] Gold linker does not resolve symbols using indirect dependencies
Mon, 10 Dec 2012 17:22:17 +0000
--- Comment #20 from Ian Lance Taylor <ian at airs dot com> 2012-12-10 17:22:17
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.