diff options
| author | Sean Fertile <sfertile@ca.ibm.com> | 2018-05-31 18:44:12 +0000 |
|---|---|---|
| committer | Sean Fertile <sfertile@ca.ibm.com> | 2018-05-31 18:44:12 +0000 |
| commit | 1a8343fce3bfff06864a86d33ec3c1acf58cc9b7 (patch) | |
| tree | 4f2033c6d01059a42bb942417c198c4b58eb27fe /lld/ELF/Relocations.cpp | |
| parent | 26fc531dbc652a7738f3c8a421b3023ca12ca1ad (diff) | |
| download | bcm5719-llvm-1a8343fce3bfff06864a86d33ec3c1acf58cc9b7.tar.gz bcm5719-llvm-1a8343fce3bfff06864a86d33ec3c1acf58cc9b7.zip | |
[PPC64] Support R_PPC64_GOT_TLSLD16 relocations.
Add support for the R_PPC64_GOT_TLSLD16 relocations used to build the address of
the tls_index struct used in local-dynamic tls.
Differential Revision: https://reviews.llvm.org/D47538
llvm-svn: 333681
Diffstat (limited to 'lld/ELF/Relocations.cpp')
| -rw-r--r-- | lld/ELF/Relocations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index 55d381fcc1f..5c4a797a17e 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -198,7 +198,7 @@ handleTlsRelocation(RelType Type, Symbol &Sym, InputSectionBase &C, return 1; } - if (isRelExprOneOf<R_TLSLD_PC, R_TLSLD_GOT_FROM_END>(Expr)) { + if (isRelExprOneOf<R_TLSLD_GOT, R_TLSLD_GOT_FROM_END, R_TLSLD_PC>(Expr)) { // Local-Dynamic relocs can be relaxed to Local-Exec. if (!Config->Shared) { C.Relocations.push_back( |

