[gold][aarch64]Patch to add support for TLSLE_MOVW_* relocations

Jing Yu jingyu@google.com
Wed Feb 11 00:44:00 GMT 2015


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gold.patch
Type: text/x-patch
Size: 4925 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150211/0df55224/attachment.bin>


More information about the Binutils mailing list