http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56557
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-03-11 09:36:24 UTC --- BTW, even stock cc1plus (i.e. no the above class.c change) against latest 4.8.0 libstdc++ shows the myriads of useless SHN_UNDEF symbols with -flto alone (and not -rdynamic), just the _ZTC* symbols aren't included in that case.