https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60946
--- Comment #9 from Andi Kleen <andi-gcc at firstfloor dot org> --- Created attachment 36391 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36391&action=edit workaround This workaround fixes it. Disable -gc-section for libstdc++. It seems like a linker bug. I opened a binutils bug report https://sourceware.org/bugzilla/show_bug.cgi?id=19008