[lld] [lld][WebAssembly] Improve merging multiple occurrences of an undefined symbol (PR #178550)

Derek Schuff via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 29 09:18:33 PST 2026


================
@@ -612,6 +611,10 @@ static void setImportAttributes(T *existing,
   if (existing->isWeak() && binding != WASM_SYMBOL_BINDING_WEAK) {
     existing->flags = (existing->flags & ~WASM_SYMBOL_BINDING_MASK) | binding;
   }
+
+  // Certain flags such as NO_STRIP should be maintianed if either old or
+  // no symbols is marked as such.
----------------
dschuff wrote:

```suggestion
  // new symbol is marked as such.
```

https://github.com/llvm/llvm-project/pull/178550


More information about the llvm-commits mailing list