This is the mail archive of the
mailing list for the GCC project.
Re: how to use different linker
Andrew Haley wrote:
satyaakam goswami writes:Maybe the word "different" was wrong and the aim was to ask about
> how can i use a different version of ld than what gcc was built
> with natively.
We don't support that. Different linkers have different arguments, so
gcc needs to know which linker it will be using.
In that case the 'gcc -print-search-dirs' will help, the "programs"
search path shows
quite many built-in search directories where that another ld could be
put and it being
found before the native one, usually in '/usr/bin'. But there are also
like '-B' to point to some "use this time" linker....