Skip to content

Commit

Permalink
[ELF] Simplify R_TPREL formula after D111365
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Oct 29, 2021
1 parent 00040d7 commit 6fcc19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/ELF/InputSection.cpp
Expand Up @@ -818,7 +818,7 @@ uint64_t InputSectionBase::getRelocTargetVA(const InputFile *file, RelType type,
// --noinhibit-exec, even a non-weak undefined reference may reach here.
// Just return A, which matches R_ABS, and the behavior of some dynamic
// loaders.
if (sym.isUndefined() || sym.isLazy())
if (sym.isUndefined())
return a;
return getTlsTpOffset(sym) + a;
case R_RELAX_TLS_GD_TO_LE_NEG:
Expand Down

0 comments on commit 6fcc19a

Please sign in to comment.