https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30417
--- Comment #14 from Senthil Kumar Selvaraj <saaadhu at gcc dot gnu.org> --- Filed https://sourceware.org/bugzilla/show_bug.cgi?id=20302 to have the linker treat -T like all other options - i.e. consider the last occurrence of an option rather than the first one.