> Here's what the generated libc.so.lds looks like. Search for ".dtor". For me the link command does not produce any of those undefined symbol errors at all. I'm sure the gcc installations differ, and I don't have a guess at the moment whether what your libgcc does is the norm.