https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108969
--- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> --- extern int cinalias __attribute__((__symver__ ("_ZSt4cin@GLIBCXX_3.4"))); void foo () { cinalias++; } doesn't work to refer to older symver, but extern int cinalias; asm (".symver cinalias, _ZSt4cin@GLIBCXX_3.4"); void foo () { cinalias++; } does. Of course, needs testing with old binutils and the like.