* elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow
authorJakub Jelinek <jakub@redhat.com>
Thu, 29 Aug 2013 10:25:27 +0000 (10:25 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 29 Aug 2013 10:25:27 +0000 (10:25 +0000)
commit5c98a14e1e4ffe0e8754ca07e50c564e1a22d6c1
tree23692432f3e4612eff5ebb256233f3a179834e94
parent5b791bb530cc1023a5e05a5216836bf80d71a6cd
* elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow
64-bit -mcmodel=large -fpic TLS GD and LD sequences.
(elf_x86_64_relocate_section): Handle -mcmodel=large -fpic
TLS GD and LD sequences in GD->LE, GD->IE and LD->LE transitions.
ld/testsuite/
* ld-x86-64/x86-64.exp: Add tlsld3, tlsgd7 and tlsgd8 tests.
* ld-x86-64/tlspic1.s: Add -mcmodel=large -fpic TLS GD and LD
sequences.
* ld-x86-64/tlspic.dd: Adjusted.
* ld-x86-64/tlspic.rd: Adjusted.
* ld-x86-64/tlspic-nacl.rd: Adjusted.
* ld-x86-64/tlsld3.dd: New test.
* ld-x86-64/tlsld3.s: New file.
* ld-x86-64/tlsgd7.dd: New test.
* ld-x86-64/tlsgd7.s: New file.
* ld-x86-64/tlsgd8.dd: New test.
* ld-x86-64/tlsgd8.s: New file.
14 files changed:
bfd/ChangeLog
bfd/elf64-x86-64.c
ld/testsuite/ChangeLog
ld/testsuite/ld-x86-64/tlsgd7.dd [new file with mode: 0644]
ld/testsuite/ld-x86-64/tlsgd7.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/tlsgd8.dd [new file with mode: 0644]
ld/testsuite/ld-x86-64/tlsgd8.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/tlsld3.dd [new file with mode: 0644]
ld/testsuite/ld-x86-64/tlsld3.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/tlspic-nacl.rd
ld/testsuite/ld-x86-64/tlspic.dd
ld/testsuite/ld-x86-64/tlspic.rd
ld/testsuite/ld-x86-64/tlspic1.s
ld/testsuite/ld-x86-64/x86-64.exp