diff options
author | Fangrui Song <maskray@google.com> | 2019-06-06 17:03:10 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-06-06 17:03:10 +0000 |
commit | 7ccfdad7ab7b749f08333a0d4eb6716227bf8ab7 (patch) | |
tree | a09426bcef2ab199b6c9ef3c1be12950fe74ad43 /lld/ELF/InputSection.cpp | |
parent | 82442adfc0330e0edae382bf69558bf3015b2149 (diff) | |
download | bcm5719-llvm-7ccfdad7ab7b749f08333a0d4eb6716227bf8ab7.tar.gz bcm5719-llvm-7ccfdad7ab7b749f08333a0d4eb6716227bf8ab7.zip |
[PPC32] Support GD/LD/IE/LE TLS models and their relaxations
Reviewed By: ruiu
Differential Revision: https://reviews.llvm.org/D62940
llvm-svn: 362722
Diffstat (limited to 'lld/ELF/InputSection.cpp')
-rw-r--r-- | lld/ELF/InputSection.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index dde7ec0fd41..d09eae1a2f4 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -611,6 +611,7 @@ static int64_t getTlsTpOffset(const Symbol &S) { case EM_X86_64: // Variant 2. The TLS segment is located just before the thread pointer. return S.getVA(0) - alignTo(Out::TlsPhdr->p_memsz, Out::TlsPhdr->p_align); + case EM_PPC: case EM_PPC64: // The thread pointer points to a fixed offset from the start of the // executable's TLS segment. An offset of 0x7000 allows a signed 16-bit |