This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH v2] [Gold,MIPS] Detect 64-bit MIPS targets
- From: Cary Coutant <ccoutant at gmail dot com>
- To: "Maciej W. Rozycki" <macro at imgtec dot com>, Binutils <binutils at sourceware dot org>
- Date: Mon, 12 Sep 2016 11:53:16 -0700
- Subject: Re: [PATCH v2] [Gold,MIPS] Detect 64-bit MIPS targets
- Authentication-results: sourceware.org; auth=none
- References: <1470770674-20068-1-git-send-email-aurelien@aurel32.net> <20160821155605.gwmdo2xmgcbeacfu@aurel32.net> <alpine.DEB.2.00.1608221635570.4471@tp.orcam.me.uk> <20160822203324.qihjfcoefsvid2vg@aurel32.net> <20160823222050.x4yptg66o2wqehkl@aurel32.net>
Is there anything more to be done with this proposed patch? I'll be
happy to commit a fix, but from this discussion, I'm not really sure
what the correct fix is.
-cary
On Tue, Aug 23, 2016 at 3:20 PM, Aurelien Jarno <aurelien@aurel32.net> wrote:
> On 2016-08-22 22:33, Aurelien Jarno wrote:
>> On 2016-08-22 16:53, Maciej W. Rozycki wrote:
>> I haven't tried that. Anyway I have just looked at the binary produced
>> by ld.gold and they use EM_MIPS even if targ_machine says
>> EM_MIPS_RS3_LE.
>
> It seems that the binary produced by ld.gold is using the value from
> the input objects, that's why it ends up with EM_MIPS. Still that is
> something to be fixed in configure.tgt.
>
>> It looks like I have to investigate more, also because the change to
>> gold/configure.tgt was not necessary with 2.16.1. I have still haven't
>> understood why.
>
> With 2.16.1, --enable-gold is just ignored when building on mips, so the
> build issue doesn't happen.
>
> Aurelien
>
> --
> Aurelien Jarno GPG: 4096R/1DDD8C9B
> aurelien@aurel32.net http://www.aurel32.net