This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][AARCH64] Add testcases for TLS relocations


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.


R.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]