I built libc++ using gcc with -fvisibility=hidden, but when linking my app against the resulting libc++.so, I got this error:
../../buildtools/third_party/libc++/trunk/include/vector:964: error: undefined reference to 'std::1::vector_base_common<true>::__throw_length_error() const'
While this issue is also fixed by D35388, this CL tries to match the behavior to __string_base_common:
https://reviews.llvm.org/diffusion/L/browse/libcxx/trunk/include/string;307970$560