3ebe65c0ff
bfd/ 2015-10-02 Renlin Li <renlin.li@arm.com> * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Add TLSIE_MOVW_GOTTPREL_G1. (aarch64_tls_transition_without_check): Add TLSIE_MOVW_GOTTPREL_G1 to TLSLE_MOVW_TPREL_G2 transition for local symbol. (elfNN_aarch64_tls_relax): Add a argument to pass tp offset. Add TLSIE_MOVW_GOTTPREL_G1 relaxation. (elfNN_aarch64_relocate_section): Call elfNN_aarch64_tls_relax with new argument. ld/testsuite/ 2015-10-02 Renlin Li <renlin.li@arm.com> * ld-aarch64/aarch64-elf.exp (tls-relax-large-le-ie): Run new test. * ld-aarch64/tls-relax-large-ie-le.d: New. * ld-aarch64/tls-relax-large-ie-le.s: New.
14 lines
449 B
Makefile
14 lines
449 B
Makefile
#source: tls-relax-large-ie-le.s
|
|
#ld: -T relocs.ld -e0
|
|
#objdump: -dr
|
|
#...
|
|
0000000000010000 <test>:
|
|
+10000: d53bd041 mrs x1, tpidr_el0
|
|
+10004: d2c00006 movz x6, #0x0, lsl #32
|
|
+10008: f2a00006 movk x6, #0x0, lsl #16
|
|
+1000c: f2800206 movk x6, #0x10
|
|
+10010: 8b0100c6 add x6, x6, x1
|
|
+10014: d2c00007 movz x7, #0x0, lsl #32
|
|
+10018: f2a00007 movk x7, #0x0, lsl #16
|
|
+1001c: f2800287 movk x7, #0x14
|
|
+10020: 8b0100e7 add x7, x7, x1
|