[ELF] Simplify R_386_TLS_GD computation. NFC
GitOrigin-RevId: b2a3d31eed3b70baf2b8123d940cadb6139d8f2b
diff --git a/ELF/InputSection.cpp b/ELF/InputSection.cpp
index 0ee1b08..17fa7db 100644
--- a/ELF/InputSection.cpp
+++ b/ELF/InputSection.cpp
@@ -839,7 +839,7 @@
case R_TLSGD_GOT:
return in.got->getGlobalDynOffset(sym) + a;
case R_TLSGD_GOTPLT:
- return in.got->getVA() + in.got->getGlobalDynOffset(sym) + a - in.gotPlt->getVA();
+ return in.got->getGlobalDynAddr(sym) + a - in.gotPlt->getVA();
case R_TLSGD_PC:
return in.got->getGlobalDynAddr(sym) + a - p;
case R_TLSLD_GOTPLT: