This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [MIPS] Can we have R_MIPS_PC64?
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: Fangrui Song <i at maskray dot me>
- Cc: Andrew Pinski <pinskia at gmail dot com>, binutils <binutils at sourceware dot org>
- Date: Mon, 17 Feb 2020 18:07:10 +0000 (GMT)
- Subject: Re: [MIPS] Can we have R_MIPS_PC64?
- References: <20200205071944.tberxwpcrkhnat4h@gmail.com> <CA+=Sn1=xg1icO50KHakDCEqc4EcStYZ2zVpC-dAR06+Ppq+Ssw@mail.gmail.com> <CA+=Sn1kWk6AoRfade-_MdqTzvCSKCVSMKNF3cFtZCNQReTB2zQ@mail.gmail.com> <CA+=Sn1mcNdGwYwC8Ds2KcNBQ569imyZsjQBFuOTyRsytKKQKXg@mail.gmail.com> <CA+=Sn1=s_vkt=iJXHCn3oLEMv-0=2o5Q3EWvujLox-NGMAK6=g@mail.gmail.com> <20200208183958.v4vfdtfstlwtod3p@google.com>
On Sat, 8 Feb 2020, Fangrui Song wrote:
> I hope someone can add back R_MIPS_PC64.
You don't need R_MIPS_PC64. You can yield the same effect the usual
MIPS64 way, that is by composing R_MIPS_PC32 with R_MIPS_64 (similarly to
e.g. how R_MIPS_REL32 composes with R_MIPS_64).
Of course the toolchain may not as it stands support this composition.
Feel free to post patches to take care of your use case.
HTH,
Maciej