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


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: forcing the linker to be a particular one (i.e. gold vs bfd)


On Wed, Jan 12, 2011 at 12:21 PM, Matthias Klose <doko@ubuntu.com> wrote:
> On 12.01.2011 19:39, H.J. Lu wrote:
>>>
>>> The more options we add to gcc the more problems
>>> in gcc version switch(back and forward) appear for gcc users.
>>>
>>
>> If you want to hide it from gcc driver, then you should do what
>> Ian suggested to use -B.
>
> -B is acceptable for somebody who knows where an alternative ld is
> installed. It's horrible for anybody else who needs to figure out the
> location where an alternative ld is installed. This includes upstreams and
> distribution makers.
>

That is why I suggested something like "gcc -flinker=ld.bfd|ld.gold"

-- 
H.J.


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