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:
ce1a4d5
)
[ELF] Simplify a condition in addGotEntry. NFC
author
Fangrui Song
<i@maskray.me>
Sat, 24 Apr 2021 05:11:14 +0000
(22:11 -0700)
committer
Fangrui Song
<i@maskray.me>
Sat, 24 Apr 2021 05:11:14 +0000
(22:11 -0700)
lld/ELF/Relocations.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Relocations.cpp
b/lld/ELF/Relocations.cpp
index
8e4af09
..
d6615e1
100644
(file)
--- a/
lld/ELF/Relocations.cpp
+++ b/
lld/ELF/Relocations.cpp
@@
-1097,7
+1097,7
@@
static void addGotEntry(Symbol &sym) {
// Otherwise, we emit a dynamic relocation to .rel[a].dyn so that
// the GOT slot will be fixed at load-time.
- if (!sym.isTls() && !sym.isPreemptible && config->isPic
&& !isAbsolute(sym)
) {
+ if (!sym.isTls() && !sym.isPreemptible && config->isPic) {
addRelativeReloc(in.got, off, &sym, 0, R_ABS, target->symbolicRel);
return;
}