From PR29093 description:
GNU ld supports [chars] wildcards in version scripts, to match a single instance of any of the chars.
Here is an excerpt from libstdc++'s version script in FreeBSD:
extern "C++" {
...
std::locale::_[T-Za-z]*; std::[A-Zm]*; std::n[^u]*; std::nu[^m]*; std::num[^e]*;
...
}
Patch adds support for scripts above.