https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85907 --- Comment #2 from David Edelsohn <dje at gcc dot gnu.org> --- This should be fixed with the recent patch to collect2.c, which will be released in GCC 8.2, GCC 7.4, GCC 6.5.