https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108969
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- You're right, it can be done just on the library side. Though, only for GNU symbol versioning, I think the Solaris one doesn't allow having one symbol with multiple symbol versions.