mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
e09ab7ac78
bfd/ PR gas/17843 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Expect R_AARCH64_TLSLE_MOVW_TPREL_G0_NC and R_AARCH64_TLSLE_MOVW_TPREL_G1_NC to be used with MOVK rather than MOVZ. gas/ PR gas/17843 * config/tc-aarch64.c (process_movw_reloc_info): Allow R_AARCH64_TLSLE_MOVW_TPREL_G0_NC and R_AARCH64_TLSLE_MOVW_TPREL_G1_NC for MOVK. gas/testsuite/ PR gas/17843 * gas/aarch64/tls.s, gas/aarch64/tls.d: Add test for R_AARCH64_TLSLE_MOVW_TPREL_G0/R_AARCH64_TLSLE_MOVW_TPREL_G1_NC sequence. ld/testsuite/ PR gas/17843 * ld-aarch64/tlsle.s, ld-aarch64/tlsle.d: New test. * ld-aarch64/aarch64-elf.exp: Run it.
99 lines
2.4 KiB
ArmAsm
99 lines
2.4 KiB
ArmAsm
.section .tbss,"awT",%nobits
|
|
a10:
|
|
.zero 0x7fef
|
|
a7fff:
|
|
.zero 0x1
|
|
a8000:
|
|
.zero 0x7fff
|
|
affff:
|
|
.zero 0x1
|
|
a10000:
|
|
.zero 0x7ffeffff
|
|
a7fffffff:
|
|
.zero 0x1
|
|
a80000000:
|
|
.zero 0x7fff0000
|
|
affff0000:
|
|
.zero 0x0000ffff
|
|
affffffff:
|
|
.zero 0x1234
|
|
a100001233:
|
|
.zero 0x123356787e78
|
|
a1234567890ab:
|
|
.zero 0xa9866f55
|
|
a1234ffff0000:
|
|
.zero 0xfffe
|
|
a1234fffffffe:
|
|
.zero 0x6dcb00000003
|
|
a800000000001:
|
|
.zero 0x7ffffffffffe
|
|
affffffffffff:
|
|
.zero 0x1234
|
|
|
|
.text
|
|
movz x0, #:tprel_g1:a10
|
|
movk x0, #:tprel_g0_nc:a10
|
|
movz x0, #:tprel_g1:a7fff
|
|
movk x0, #:tprel_g0_nc:a7fff
|
|
movz x0, #:tprel_g1:a8000
|
|
movk x0, #:tprel_g0_nc:a8000
|
|
movz x0, #:tprel_g1:affff
|
|
movk x0, #:tprel_g0_nc:affff
|
|
movz x0, #:tprel_g1:a10000
|
|
movk x0, #:tprel_g0_nc:a10000
|
|
movz x0, #:tprel_g1:a7fffffff
|
|
movk x0, #:tprel_g0_nc:a7fffffff
|
|
movz x0, #:tprel_g1:a80000000
|
|
movk x0, #:tprel_g0_nc:a80000000
|
|
movz x0, #:tprel_g1:affff0000
|
|
movk x0, #:tprel_g0_nc:affff0000
|
|
movz x0, #:tprel_g1:affffffff
|
|
movk x0, #:tprel_g0_nc:affffffff
|
|
|
|
movz x0, #:tprel_g2:a10
|
|
movk x0, #:tprel_g1_nc:a10
|
|
movk x0, #:tprel_g0_nc:a10
|
|
movz x0, #:tprel_g2:a7fff
|
|
movk x0, #:tprel_g1_nc:a7fff
|
|
movk x0, #:tprel_g0_nc:a7fff
|
|
movz x0, #:tprel_g2:a8000
|
|
movk x0, #:tprel_g1_nc:a8000
|
|
movk x0, #:tprel_g0_nc:a8000
|
|
movz x0, #:tprel_g2:affff
|
|
movk x0, #:tprel_g1_nc:affff
|
|
movk x0, #:tprel_g0_nc:affff
|
|
movz x0, #:tprel_g2:a10000
|
|
movk x0, #:tprel_g1_nc:a10000
|
|
movk x0, #:tprel_g0_nc:a10000
|
|
movz x0, #:tprel_g2:a7fffffff
|
|
movk x0, #:tprel_g1_nc:a7fffffff
|
|
movk x0, #:tprel_g0_nc:a7fffffff
|
|
movz x0, #:tprel_g2:a80000000
|
|
movk x0, #:tprel_g1_nc:a80000000
|
|
movk x0, #:tprel_g0_nc:a80000000
|
|
movz x0, #:tprel_g2:affff0000
|
|
movk x0, #:tprel_g1_nc:affff0000
|
|
movk x0, #:tprel_g0_nc:affff0000
|
|
movz x0, #:tprel_g2:affffffff
|
|
movk x0, #:tprel_g1_nc:affffffff
|
|
movk x0, #:tprel_g0_nc:affffffff
|
|
movz x0, #:tprel_g2:a100001233
|
|
movk x0, #:tprel_g1_nc:a100001233
|
|
movk x0, #:tprel_g0_nc:a100001233
|
|
movz x0, #:tprel_g2:a1234567890ab
|
|
movk x0, #:tprel_g1_nc:a1234567890ab
|
|
movk x0, #:tprel_g0_nc:a1234567890ab
|
|
movz x0, #:tprel_g2:a1234ffff0000
|
|
movk x0, #:tprel_g1_nc:a1234ffff0000
|
|
movk x0, #:tprel_g0_nc:a1234ffff0000
|
|
movz x0, #:tprel_g2:a1234fffffffe
|
|
movk x0, #:tprel_g1_nc:a1234fffffffe
|
|
movk x0, #:tprel_g0_nc:a1234fffffffe
|
|
movz x0, #:tprel_g2:a800000000001
|
|
movk x0, #:tprel_g1_nc:a800000000001
|
|
movk x0, #:tprel_g0_nc:a800000000001
|
|
movz x0, #:tprel_g2:affffffffffff
|
|
movk x0, #:tprel_g1_nc:affffffffffff
|
|
movk x0, #:tprel_g0_nc:affffffffffff
|
|
ret
|