This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unintellegible ld error messages


On Fri, May 13, 2005 at 04:07:56PM -0400, Paul Koning wrote:
> It turns out that libgcc.so has _Unwind_GetIP as a regular symbol, but
> libgcc.a has it as a hidden symbol.  One of my builds only has the .a
> version of libgcc, so that's why that link fails (while others for
> another target work fine).

_Unwind_GetIP as a hidden symbol in libgcc.a is not the problem.  If you
built libstdc++.so linked against libgcc_s.so, then when linking using
libstdc++.so you need to have libgcc_s.so available, and, importantly,
libgcc_s.so must be linked before libgcc.a if both are specified.

If you built libstdc++.so only linked against libgcc.a, then you can use
libstdc++.so like that too.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]