projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a623051
)
[ELF] Simplify R_386_TLS_GD computation. NFC
author
Fangrui Song
<i@maskray.me>
Sat, 17 Apr 2021 02:08:23 +0000
(19:08 -0700)
committer
Fangrui Song
<i@maskray.me>
Sat, 17 Apr 2021 02:08:23 +0000
(19:08 -0700)
lld/ELF/InputSection.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/InputSection.cpp
b/lld/ELF/InputSection.cpp
index
0ee1b08
..
17fa7db
100644
(file)
--- a/
lld/ELF/InputSection.cpp
+++ b/
lld/ELF/InputSection.cpp
@@
-839,7
+839,7
@@
uint64_t InputSectionBase::getRelocTargetVA(const InputFile *file, RelType type,
case R_TLSGD_GOT:
return in.got->getGlobalDynOffset(sym) + a;
case R_TLSGD_GOTPLT:
- return in.got->get
VA() + in.got->getGlobalDynOffset
(sym) + a - in.gotPlt->getVA();
+ return in.got->get
GlobalDynAddr
(sym) + a - in.gotPlt->getVA();
case R_TLSGD_PC:
return in.got->getGlobalDynAddr(sym) + a - p;
case R_TLSLD_GOTPLT: