[PATCH][AARCH64] Add testcases for TLS relocations
Marcus Shawcroft
marcus.shawcroft@arm.com
Tue Nov 27 10:52:00 GMT 2012
On 27/11/12 10:50, Marcus Shawcroft wrote:
> On 26/11/12 16:48, Sofiane Naci wrote:
>> 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.
>>
>
> OK
Sorry, I should have said "this looks ok to me", but I can't approve it,
you need to wait for Nick or Richard.
/Marcus
More information about the Binutils
mailing list