unexpected hidden symbol in gcc 4.0.0
Andrew Pinski
pinskia@physics.uc.edu
Fri May 13 22:15:00 GMT 2005
On May 13, 2005, at 5:33 PM, Paul Koning wrote:
> I ran into link errors complaining about references to hidden symbol
> _Unwind_GetIP from a DSO.
>
> It turns out unwind-dw2.c is compiled with -fvisibility=hidden for the
> static library case (but not for the shared library case).
>
> In my link, I was using the libgcc.a (for that particular platform I
> don't use libgcc.so). So the linker complained.
In that case, C++ exceptions for your target will never work correctly.
Anyways, -fvisibility=hidden is needed for libgcc.a (This was done a
different way in the past, by editing the assembly file) because
otherwise, you can have the same symbol exported from two different
shared libraries which is bad.
-- Pinski
More information about the Gcc
mailing list