https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117630
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- No, the system_error.cc file uses the other std::string type. It needs to be in a file using the COW string. It could be in its own file, but why doesn't linking with --gc-sections avoid pulling it in?