3b957e5b07
bfd/ 2015-10-02 Renlin Li <renlin.li@arm.com> * reloc.c: Make AARCH64_TLSIE_MOVW_GOTTPREL_G1 and AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC defined in alphabetical order. * libbfd.h: Regenerate. * bfd-in2.h: Likewise. * elfnn-aarch64.c (elfNN_aarch64_howto_table): Make TLSIE_MOVW_GOTTPREL_G1 check overflow. (aarch64_reloc_got_type): Add support for TLSIE_MOVW_GOTTPREL_G1 and TLSIE_MOVW_GOTTPREL_G0_NC. (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. gas/ 2015-10-02 Renlin Li <renlin.li@arm.com> * config/tc-aarch64.c (reloc_table): Add two entries for gottprel_g0_nc and gottprel_g1. (process_movw_reloc_info): Add support. (md_apply_fix): Likewise. (aarch64_force_relocation): Likewise. gas/testsuite/ 2015-10-02 Renlin Li <renlin.li@arm.com> * gas/aarch64/reloc-gottprel_g0_nc.d: New. * gas/aarch64/reloc-gottprel_g0_nc.s: New. * gas/aarch64/reloc-gottprel_g1.d: New. * gas/aarch64/reloc-gottprel_g1.s: New. ld/testsuite/ 2015-10-02 Renlin Li <renlin.li@arm.com> * ld-aarch64/tls-large-ie.d: New. * ld-aarch64/tls-large-ie.s: New. * ld-aarch64/aarch64-elf.exp: Run new test.
19 lines
551 B
Makefile
19 lines
551 B
Makefile
#source: tls-large-ie.s
|
|
#ld: -shared -T relocs.ld -e0
|
|
#objdump: -dr
|
|
#...
|
|
|
|
Disassembly of section .text:
|
|
|
|
0000000000010000 \<test\>:
|
|
10000: 58000121 ldr x1, 10024 \<test\+0x24\>
|
|
10004: 10000102 adr x2, 10024 \<test\+0x24\>
|
|
10008: 8b020021 add x1, x1, x2
|
|
1000c: d53bd042 mrs x2, tpidr_el0
|
|
10010: d2a00000 movz x0, #0x0, lsl #16
|
|
10014: f2800100 movk x0, #0x8
|
|
10018: f8606820 ldr x0, \[x1,x0\]
|
|
1001c: 8b020000 add x0, x0, x2
|
|
10020: d503201f nop
|
|
10024: 0000ffdc .word 0x0000ffdc
|
|
10028: 00000000 .word 0x00000000
|