https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90902
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- I usually do -v -save-temps -Wl,-debug -Wl,-v and cut&paste the link line (it shows the collect-ld invocation). Otherwise it's probably more desirable to merge collect2 into the driver(s).