This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gold on trunk breaks aarch64- and arm32-linux (Re: [gold][PATCH] PR gold/19119: Gold accepts bogus target emulation)
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Matthias Klose <doko at ubuntu dot com>
- Cc: Cary Coutant <ccoutant at gmail dot com>, Binutils <binutils at sourceware dot org>, gcc Development <gcc at gcc dot gnu dot org>
- Date: Sun, 25 Oct 2015 10:40:10 -0700
- Subject: Re: gold on trunk breaks aarch64- and arm32-linux (Re: [gold][PATCH] PR gold/19119: Gold accepts bogus target emulation)
- Authentication-results: sourceware.org; auth=none
- References: <20151014160535 dot GA9804 at intel dot com> <CAJimCsGDNCogqXPOvLHXw=5SrCZpHes7EmSqjtqhadJXgZbwhQ at mail dot gmail dot com> <562D135B dot 7060207 at ubuntu dot com>
On Sun, Oct 25, 2015 at 10:37 AM, Matthias Klose <doko@ubuntu.com> wrote:
> On 15.10.2015 17:57, Cary Coutant wrote:
>>>
>>> PR gold/19119
>>> * options.h (General_options): Remove "obsolete" from -m.
>>
>>
>> I'm a little reluctant to remove "obsolete" from the description --
>> maybe "deprecated" instead?
>>
>>> * parameters.cc (set_parameters_target): Check if input target
>>> is compatible with output emulation set by "-m emulation".
>>
>>
>> This is OK. Thanks!
>
>
> hmm, this breaks any released gcc on aarch64-linux-gnu and
> arm-linux-gnueabi*
>
> $ gcc -fuse-ld=gold foo.c
> /usr/bin/ld.gold: error: unrecognised output emulation: aarch64linux
> collect2: error: ld returned 1 exit status
>
> $ gcc -fuse-ld=gold foo.c
> /usr/bin/ld.gold: error: unrecognised output emulation: armelf_linux_eabi
> collect2: error: ld returned 1 exit status
>
What do ld.bfd -V and ld.gold -V report? They should support the
same set of emulations.
--
H.J.