------- Comment #14 from espindola at gcc dot gnu dot org 2010-01-17 05:47 ------- I don't think that in general we can support things like -nodefaultlibs -lc -lgcc. Doing that with static libraries and lto is such an uncommon case that it is probably OK to ask the user to also pass -Wl,-pass-through...
I am not familiar with the driver code, but if we already have SPEC stings that are used only when linking libgcc or libc, that is the perfect place to add %{fuse-linker-plugin: -plugin-opt=-pass-through=...} -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42690