gcc 3.4.6: exception handling not working for binary pre-compiled on Redhat
Andrew Haley
aph-gcc@littlepinkcloud.COM
Fri Oct 5 09:23:00 GMT 2007
Gaurav Rastogi writes:
> Problem Synopsis:
> =================
>
> Exception handling in C++ not working when a binary is compiled
> against the standard Redhat release 4 update 4 that has gcc 3.4.6 and
> libstd++ 6.0.3, glibc 2.3.6 with NPTL threads library linked
> dynamically and run on a cross compiled environment that has the same
> gcc 3.4.6, glibc 2.3.6 and NTPL linked dynamically to /lib/tls/libc.
>
> In addition, problem does not happen if code is compiled with
> -static-libgcc option.
Which just about proves that your target libraries are not the same
ones that you cross-compiled against. Have a very good look at your
target's libgcc and the libgcc on your cross-compiling host and make
sure they are indeed the same. Also make sure the header files are
the same.
Andrew.
More information about the Gcc-help
mailing list