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]

[PATCH][AARCH64] Add testcases for TLS relocations


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.

Attachment: aarch64-add-tls-tests.patch
Description: Binary data


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