[lld] [wasm-ld] Refactor WasmSym from static globals to per-link context (PR #134970)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 10:55:12 PDT 2025
================
@@ -141,6 +142,9 @@ struct Ctx {
llvm::SmallVector<InputGlobal *, 0> syntheticGlobals;
llvm::SmallVector<InputTable *, 0> syntheticTables;
+ // Linker-generated symbols like __wasm_init_memory, __heap_base, etc.
+ std::unique_ptr<WasmSym> wasmSym;
----------------
sbc100 wrote:
It looks like the ELF linker calls this member just `sym` .. can we do the same there?
https://github.com/llvm/llvm-project/pull/134970
More information about the llvm-commits
mailing list