[ELF] Remove unneeded DF_STATIC_TLS for EM_386 local-exec TLS

which is also untested.
This commit is contained in:
Fangrui Song 2021-11-24 20:43:58 -08:00
parent 25d173499e
commit 371290dfd4
1 changed files with 1 additions and 6 deletions

View File

@ -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) {