[AArch64][3/3] LD support BFD_RELOC_AARCH64_TLSLD_ADR_PREL21

This commit is contained in:
Jiong Wang
2015-07-16 15:46:21 +01:00
parent 6c37fedc41
commit 77a69ff840
7 changed files with 53 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-07-16 Jiong Wang <jiong.wang@arm.com>
* ld-aarch64/tls-tiny-ld.s: New file.
* ld-aarch64/tls-tiny-ld.d: Ditto.
* ld-aarch64/aarch64-elf.exp: Run new test.
2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
* ld-elf/zlibbegin.rS: Updated to .debug_.* with the

View File

@ -146,6 +146,7 @@ run_dump_test "tls-tiny-desc"
run_dump_test "tls-tiny-desc-ie"
run_dump_test "tls-tiny-desc-le"
run_dump_test "tls-tiny-ie"
run_dump_test "tls-tiny-ld"
run_dump_test "tlsle"
run_dump_test "tlsle-symbol-offset"
run_dump_test "gc-got-relocs"

View File

@ -0,0 +1,8 @@
#source: tls-tiny-ld.s
#ld: -T relocs.ld -shared
#readelf: -Wr
Relocation section '\.rela\.dyn' at offset 0x10070 contains 2 entries:
Offset Info Type Symbol's Value Symbol's Name \+ Addend
0000000000000000 0000000000000000 R_AARCH64_NONE 0
0000000000020008 0000000200000404 R_AARCH64_TLS_DTPMOD64 0000000000000000 dummy \+ 0

View File

@ -0,0 +1,7 @@
// Test file for AArch64 LD -- tlsldm
.text
func:
add x1, x2, x3
// BFD_RELOC_AARCH64_TLSLD_ADR_PREL21
adr x0, :tlsldm:dummy