https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88750
--- Comment #6 from Jürgen Reuter <juergen.reuter at desy dot de> --- In the linking before I do see the following warning: ld: warning: direct access in function 'operator new[](unsigned long, std::nothrow_t const&) [clone .cold]' from file '/usr/local/lib/libstdc++.a(new_opvnt.o)' to global weak symbol 'operator new[](unsigned long, std::nothrow_t const&)' from file '/usr/local/lib/libstdc++.a(new_opvnt.o)' means the weak symbol cannot be overridden at runtime. This was likely ca Not totally sure what that means. The problem appears that libtool links the static stdc++ library into my test binary (via --static-libtool-libs), which causes the warning above, and the malloc runtime error. When I link in by hand the dynamic library via -lstdc++ then the warning goes away as well as the runtime error.