This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: One and a half bugs plus some hacks
2008/5/8 Ian Lance Taylor <iant@google.com>:
> > 2008/5/7 Ian Lance Taylor <iant@google.com>:
> >> "Andreas Hartmetz" <ahartmetz@gmail.com> writes:
> >>
> >>
> >> > -gold aborts with an error message about "undefined symbol version
> >> > OPENSSL_0.9.8" (paraphrased) in one instance when linking against
> >> > openssl.
> >>
> >> This one I don't understand. Can you give me some more details about
> >> what is happening?
>
> Andreas provided some additional details off-list--thanks! I believe
> the problem is that gold was not properly overriding the version when
> it saw a normal definition of a symbol after seeing a definition of
> the symbol in a shared library with a non-hidden version.
>
I didn't want to send the information off-list actually, I just hit
the reply button without thinking about it :)
> In the case at hand I suspect this is happening due to an over-zealous
> a version script, which does "global: *;". This is not a good idea--a
> version script should control symbol visibility, which means that it
> should explicitly list the global symbols and not just make all
> symbols global. However, that is a valid version script, and in fact
> gold did not handle it correctly. Most of this patch is actually
> making that work.
>
> Once that worked, I could recreate the problem using gold. The few
> lines in resolve.cc fix it.
>
> Andreas, as far as I know, at this point all the problem with building
> KDE are fixed. Please let me know if there are problems. And thanks
> for reporting them.
>
Thank you very much Ian - you fixed all the problems that I know of! Woohoo!