Fix AArch64 relocation handling in ILP32 mode.
authorYury Norov <ynorov@caviumnetworks.com>
Mon, 23 Jan 2017 17:07:13 +0000 (17:07 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 23 Jan 2017 17:07:13 +0000 (17:07 +0000)
commit2d0ca824112f269a883cd04d344614ccab3baaf4
tree5a55382ca10744fd0cc2d58cf9f4b05c05b9a1c8
parentc49f9d0fdaea8c2e5f78e20bec113fe3cf1b79f0
Fix AArch64 relocation handling in ILP32 mode.

bfd * elfnn-aarch64.c: Fix relaxations for ILP32 mode.

ld * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
* testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
* testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
* testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
* testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
* testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
* testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
* testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
* testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
* testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
* testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
* testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
* testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
16 files changed:
bfd/ChangeLog
bfd/elfnn-aarch64.c
ld/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/tls-desc-ie-ilp32.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/tls-relax-all-ilp32.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d [new file with mode: 0644]
ld/testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d [new file with mode: 0644]