[ELF] Remove !isLazy() condition from computeBinding
authorFangrui Song <i@maskray.me>
Sun, 16 Jan 2022 07:58:15 +0000 (23:58 -0800)
committerFangrui 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

index 221a89a..d943c19 100644 (file)
@@ -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;