Fix accesses to the GOT for AARCH64 operating in 32-bit mode.
authorYury Norov <ynorov@caviumnetworks.com>
Thu, 1 Dec 2016 12:31:51 +0000 (12:31 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 1 Dec 2016 12:31:51 +0000 (12:31 +0000)
commit5cd1d8bcc24e948e86a636161e6d72f6316545a7
tree7808d35833e73ee1e3de1c96d540ebb51226bc79
parent40a0bfddf07620f5321927b3231502debb3b73bc
Fix accesses to the GOT for AARCH64 operating in 32-bit mode.

PR ld/20868
bfd * elfnn-aarch64.c (elfNN_aarch64_tls_relax): Use 32-bit accesses
to the GOT when operating in 32-bit mode.

ld * testsuite/ld-aarch64/tls-relax-gd-ie-ilp32.d: New test.
* testsuite/ld-aarch64/relocs-ilp32.ld: Linker script for the new
test.
* testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
bfd/ChangeLog
bfd/elfnn-aarch64.c
ld/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/relocs-ilp32.ld [new file with mode: 0644]
ld/testsuite/ld-aarch64/tls-relax-gd-ie-ilp32.d [new file with mode: 0644]