This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold][aarch64]Patch to add support for TLSLE_MOVW_* relocations
- From: HÃn ShÄn (ææ) <shenhan at google dot com>
- To: Jing Yu <jingyu at google dot com>
- Cc: binutils <binutils at sourceware dot org>, Cary Coutant <ccoutant at google dot com>
- Date: Thu, 12 Feb 2015 11:05:45 -0800
- Subject: Re: [gold][aarch64]Patch to add support for TLSLE_MOVW_* relocations
- Authentication-results: sourceware.org; auth=none
- References: <CAJ_rGWTjk6NXFZ75TNvGxvrqgRYTM-4dsTfvUf4qnWXzx4+KAw at mail dot gmail dot com>
Hi Jing, LGTM.
Thanks,
Han
On Tue, Feb 10, 2015 at 4:44 PM, Jing Yu <jingyu@google.com> wrote:
> Hi binutils,
>
> LLVM aarch64 backend generates AARCH64_TLSLE_MOVW_* relocations that
> were not supported by gold linker (bfd-ld supports them). This patch
> adds such support.
>
> On x86-64 and aarch64, configure and build binutils.
> $../binutils-gdb/configure --enable-plugins --disable-multilib
> --disable-nls --enable-threads --enable-gold=default
> --enable-targets=all
> Tested the small tls-le test that was generated by llvm.
> Passed other local tls tests.
>
> OK for trunk?
>
> Thanks,
> Jing
>
> 2015-02-10 Jing Yu <jingyu@google.com>
>
> * aarch64-reloc.def (TLSLE_MOVW_TPREL_G2, TLSLE_MOVW_TPREL_G1,
> TLSLE_MOVW_TPREL_G1_NC, TLSLE_MOVW_TPREL_G0, TLSLE_MOVW_TPREL_G0_NC,):
> New relocation.
> * aarch64.cc (Target_aarch64::Scan::local): Add cases for new
> TLSLE_MOVW_* relocations.
> (Target_aarch64::Scan::global): Likewise.
> (Target_aarch64::Relocate::relocate): Likewise.
> (Target_aarch64::Relocate::relocate_tls): Add cases and handlings
> for new TLSLE_MOVW_* relocations.