This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 0 of 3] Add support for using gold instead of ld


Bryan, Arnaud, All,

On Tuesday 28 December 2010 01:22:56 Bryan Hundven wrote:
> On Mon, Dec 27, 2010 at 4:18 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
> > On Mon, Dec 27, 2010 at 3:58 PM, Arnaud Lacombe <lacombar@gmail.com> wrote:
> >> That is incomplete You also need to pass --enable-gold to gcc's
> >> configure to build the linker plugin.
> > Right. Is this only when ld.gold is ld?
> > Or just when gold is enabled at all.
> 
> Actually, to answer my own question, for gcc 4.5.x, the only option is
> to --enable-gold (just like binutils 2.20x). for gcc 4.6.x the options
> would be the same as binutils 2.21.

Really? There's nothing suggesting so in:
http://gcc.gnu.org/viewcvs/trunk/gcc/doc/install.texi?revision=168202&content-type=text%2Fplain&view=co

In there, only --enable-gold is documented. Or I can't read texi. :-)

If you looked at ./configure and saw the same options as for binutils, then
do not be confused. Those GNU guys use a shared (templated?) ./configure, so
you may got mislead...

What I understood is:
 1) --enable-gold is available starting with gcc-4.5, and 4.6 did not change
 3) --enable-gold does nothing by itself
 4) --enable-gold with --enable-lto builds a plugin that gold can use to
    handle LTO
 5) there's no 2)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]