https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- See what I said in <https://gcc.gnu.org/ml/gcc-patches/2013-11/msg02605.html> - I think linking --as-needed -latomic --no-as-needed makes sense by default when --as-needed is supported. The problem would be any platforms where (a) there is no --as-needed support, but (b) shared libraries are supported and linking with a shared library introduces a dependency into the binary even if no symbols from that shared library are used.