forked from OSchip/llvm-project
[ELF] Remove unneeded DF_STATIC_TLS for EM_386 local-exec TLS
which is also untested.
This commit is contained in:
parent
25d173499e
commit
371290dfd4
|
@ -78,12 +78,7 @@ int X86::getTlsGdRelaxSkip(RelType type) const {
|
|||
|
||||
RelExpr X86::getRelExpr(RelType type, const Symbol &s,
|
||||
const uint8_t *loc) const {
|
||||
// There are 4 different TLS variable models with varying degrees of
|
||||
// flexibility and performance. LocalExec and InitialExec models are fast but
|
||||
// less-flexible models. If they are in use, we set DF_STATIC_TLS flag in the
|
||||
// dynamic section to let runtime know about that.
|
||||
if (type == R_386_TLS_LE || type == R_386_TLS_LE_32 || type == R_386_TLS_IE ||
|
||||
type == R_386_TLS_GOTIE)
|
||||
if (type == R_386_TLS_IE || type == R_386_TLS_GOTIE)
|
||||
config->hasStaticTlsModel = true;
|
||||
|
||||
switch (type) {
|
||||
|
|
Loading…
Reference in New Issue