https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109460

--- Comment #27 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> As I said on IRC, even GCC 4.8 passes -r through to linker invocation, but
> only since
> r9-2994 gcc -r acts effectively the same as -r -nostdlib, before that one
> had to use both options to avoid linking crt files, standard libraries and
> the like even during the relocatable link.
> An open question remains if mingw/cygwin supports other host compilers for
> stage1, like clang, icc, msvc and the like, and whether -r or -r -nostdlib
> works for those.

Yes, if we could avoid partial linking altogether, that would be best.

Reply via email to