Hi,
This patch adds testcases for the TLS relocations:
R_AARCH64_TLSLE_MOVW_TPREL_G2
R_AARCH64_TLSLE_MOVW_TPREL_G1
R_AARCH64_TLSLE_MOVW_TPREL_G1_NC
and adds a sanity check in gas to ensure R_AARCH64_TLSLE_MOVW_TPREL_G*_NC
relocations are correctly used with MOVK instructions.
Thanks
Sofiane
-----
ChangeLog:
2012-11-26 Sofiane Naci <sofiane.naci@arm.com>
gas/
* config/tc-aarch64.c (process_movw_reloc_info):
Allow BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0_NC and
BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1_NC relocations
for MOVK.
Check use of BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G0_NC and
BFD_RELOC_AARCH64_TLSLE_MOVW_TPREL_G1_NC relocations
with MOV[NZ].
ld/testsuite/
* ld-aarch64/tlsle-large-1.s: New file.
* ld-aarch64/tlsle-large-1.d: New file.
* ld-aarch64/tlsle-large-2.s: New file.
* ld-aarch64/tlsle-large-2.d: New file.
* ld-aarch64/aarch64-elf.exp: Add tlsle-large-1 and tlsle-large-2
tests.