Fixed AArch64 TLS relocation resolution.
authorYufeng Zhang <yufeng.zhang@arm.com>
Tue, 16 Oct 2012 16:36:50 +0000 (16:36 +0000)
committerYufeng Zhang <yufeng.zhang@arm.com>
Tue, 16 Oct 2012 16:36:50 +0000 (16:36 +0000)
commitbb3f9ed8ba3cfb9a271b84cc8f1d79878fb15e78
treeede0cfb122e89842a33560fc1e0c15b5c34703c8
parent448835468fbad10d63450d25b9c7cf929fcde842
Fixed AArch64 TLS relocation resolution.

bfd/

* elf64-aarch64.c (elf64_aarch64_tls_howto_table): Fix shift value for
R_AARCH64_TLSIE_LD_GOTTPREL_PREL19, R_AARCH64_TLSLE_MOVW_TPREL_G2,
R_AARCH64_TLSLE_MOVW_TPREL_G1, R_AARCH64_TLSLE_MOVW_TPREL_G1_NC,
R_AARCH64_TLSLE_ADD_TPREL_HI12.
(elf64_aarch64_tlsdesc_howto_table): Fix shift value for
R_AARCH64_TLSDESC_LD64_PREL19 and R_AARCH64_TLSDESC_OFF_G1.
(elf64_aarch64_final_link_relocate): Add signed_addend when resolving
AARCH64_TLSLE_*_TPREL_* relocations.

ld/testsuite/

* ld-aarch64/tlsle-symbol-offset.s: New file.
* ld-aarch64/tlsle-symbol-offset.d: New file.
* ld-aarch64/aarch64-elf.exp: Add tlsle-symbol-offset test.
bfd/ChangeLog
bfd/elf64-aarch64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/tlsle-symbol-offset.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/tlsle-symbol-offset.s [new file with mode: 0644]
This page took 0.02555 seconds and 4 git commands to generate.