forcing the linker to be a particular one (i.e. gold vs bfd)

Ian Lance Taylor iant@google.com
Thu Jan 13 17:33:00 GMT 2011


Vladimir Simonov <sv@sw.ru> writes:

> See link in my original e-mail.
> http://svn.debian.org/viewsvn/gcccvs/branches/sid/gcc-4.4/debian/patches/gold-and-ld.diff?view=log&pathrev=4512
>
> So. We have:
> 1. "-B" solution is unacceptable for package-based distributions.
> In this case binutils-gold package must be introduced.
> With different install-root. And so on...
> 2. Nick's patch implementing linker switch in gcc.
> The patch may be slightly emended and pushed into gcc.
> 3. Matthias promises to implement the switch into
> binutils. This patch may be pushed into binutils.
>
> Am I correct?
>
> IMO gcc/binutils maintainers opinion is important
> here. What is the right place to do linker switch?
>
> Ian?
> Others?

It seems to clear to me that any choice of linker must be made in gcc,
either in the gcc driver proper or in collect2.

I'm sorry I'm not up on the status of this.  Is there a patch awaiting
review?

Ian



More information about the Binutils mailing list