old-cross-binutils/ld/testsuite/ld-aarch64/emit-relocs-516.s
Renlin Li 7ba7cfe431 [LD][AARCH64]Add BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC support.
bfd/

2015-10-02  Renlin Li <renlin.li@arm.com>

	* elfnn-aarch64.c (aarch64_reloc_got_type): Add
	BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC support.
	(elfNN_aarch64_final_link_relocate): Likewise.
	(elfNN_aarch64_relocate_section): Likewise.
	(elfNN_aarch64_gc_sweep_hook): Likewise.
	(elfNN_aarch64_check_relocs): Likewise.
	* elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
	(_bfd_aarch64_elf_resolve_relocation): Likewise.

ld/testsuite/

2015-10-02  Renlin Li <renlin.li@arm.com>

	* ld-aarch64/emit-relocs-516.d: New.
	* ld-aarch64/emit-relocs-516.s: New.
	* ld-aarch64/aarch64-elf.exp: Run new test.
2015-10-02 17:56:08 +01:00

15 lines
229 B
ArmAsm

.global var
.global dummy
.text
test:
ldr x1, .Lgot
adr x2, .Lgot
add x1, x1, x2
movk x0, #:tlsgd_g0_nc:var
movk x0, #:tlsgd_g0_nc:dummy
add x0, x1, x0
bl __tls_get_addr
nop
.Lgot: .xword _GLOBAL_OFFSET_TABLE_ - .