This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: forcing the linker to be a particular one (i.e. gold vs bfd)
- From: Ian Lance Taylor <iant at google dot com>
- To: Vladimir Simonov <sv at sw dot ru>
- Cc: Nick Clifton <nickc at redhat dot com>, Matthias Klose <doko at ubuntu dot com>, binutils <binutils at sourceware dot org>
- Date: Wed, 12 Jan 2011 07:16:40 -0800
- Subject: Re: forcing the linker to be a particular one (i.e. gold vs bfd)
- References: <20101010200752.e21eb675.basile@starynkevitch.net> <87d3rh7r5c.fsf@Pulska.kon.iki.fi> <4CB21F66.9050001@ubuntu.com> <4D2D6598.2000406@sw.ru>
Vladimir Simonov <sv@sw.ru> writes:
> 3. What for do we need --enable-gold in configure.ac and
> gcc_cv_gold/ORIGINAL_GOLD_FOR_TARGET,etc. in gcc/configure.ac, gcc/exec-tool.in?
> For "Single tree build"?
> Is this mode used widely? As I understand the most of people use separate
> binutils/gcc build. In separate build default linker is specified
> via binutils configure options. So we need not explicit gold support
> in gcc's configure process.
> Is "Single tree build" mode support important for gold developers?
Single tree build mode is not important for gold developers, at least
not for me.
> 5. Ones we need to pass some options to collect2, what do you think
> about -Wc,OPTIONS_FOR_COLLECT2 interface into gcc? Like
> it is for -Wa/-Wl. "c" in -Wc means collect, may be -Wt is better
> to avoid confusion with "C" as language.
I don't see a need for a special way to pass options to collect2. -Wl
will pass options to collect2 just fine. If there is some need, it
should not be -Wc, as libtool uses that to pass options to the compiler.
I don't personally care too much about this issue. At Google we just
install GNU ld in a different directory under the name "ld", and pass a
-B option to gcc if we want to use it. That approach doesn't require
any changes to any tools. I'm not opposed to installing the linkers
under different names and coming up with some way to tell the compiler
which linker to use, I just don't personally care about it all that
much.
Ian