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:
c0fc09a
)
[ELF] Remove !isLazy() condition from computeBinding
author
Fangrui Song
<i@maskray.me>
Sun, 16 Jan 2022 07:58:15 +0000
(23:58 -0800)
committer
Fangrui Song
<i@maskray.me>
Sun, 16 Jan 2022 07:58:15 +0000
(23:58 -0800)
Seems applicable since we demote lazy symbols to Undefined (D111365).
lld/ELF/Symbols.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Symbols.cpp
b/lld/ELF/Symbols.cpp
index
221a89a
..
d943c19
100644
(file)
--- a/
lld/ELF/Symbols.cpp
+++ b/
lld/ELF/Symbols.cpp
@@
-269,7
+269,7
@@
MemoryBufferRef LazyArchive::getMemberBuffer() {
uint8_t Symbol::computeBinding() const {
if ((visibility != STV_DEFAULT && visibility != STV_PROTECTED) ||
-
(versionId == VER_NDX_LOCAL && !isLazy())
)
+
versionId == VER_NDX_LOCAL
)
return STB_LOCAL;
if (binding == STB_GNU_UNIQUE && !config->gnuUnique)
return STB_GLOBAL;