https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71697 --- Comment #3 from Ian Lance Taylor <ian at airs dot com> --- The running the failing command yourself with the -v option and see which options are being passed to the linker.