Why does pthread_cancel_init() dlopen libgcc_s.so.1?

Dave Barach dbarach@verizon.net
Mon Oct 19 15:41:00 GMT 2009


Wonder if someone can explain why pthread_cancel_init() dlopens
libgcc_s.so.1? 

At a higher level: why are some bits of the pthread implementation present
in glibc, while other bits come from libgcc?

Why would one care? When building a cross toolchain: we configure gcc w/
--enable-threads=single (so the gcc build doesn't depend on glibc), build
gcc, build glibc, then reconfigure and rebuild gcc to generate
libgcc_s.so.1. 

Is there a better way to solve the interdependency between glibc and
libgcc_s when building a cross toolchain? 

Thanks... Dave Barach 



More information about the Libc-help mailing list