Skip to content

Commit 6fcc19a

Browse files
committed
[ELF] Simplify R_TPREL formula after D111365
1 parent 00040d7 commit 6fcc19a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/InputSection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ uint64_t InputSectionBase::getRelocTargetVA(const InputFile *file, RelType type,
818818
// --noinhibit-exec, even a non-weak undefined reference may reach here.
819819
// Just return A, which matches R_ABS, and the behavior of some dynamic
820820
// loaders.
821-
if (sym.isUndefined() || sym.isLazy())
821+
if (sym.isUndefined())
822822
return a;
823823
return getTlsTpOffset(sym) + a;
824824
case R_RELAX_TLS_GD_TO_LE_NEG:

0 commit comments

Comments
 (0)