[lld] [lld][WebAssembly] Allow linker-synthetic symbols to be undefined when building shared libraries (PR #128223)
    YAMAMOTO Takashi via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Aug 13 23:03:21 PDT 2025
    
    
  
================
@@ -965,6 +965,8 @@ static void createSyntheticSymbols() {
   } else {
     // For non-PIC code
     WasmSym::stackPointer = createGlobalVariable("__stack_pointer", true);
+    WasmSym::definedMemoryBase = symtab->addOptionalDataSymbol("__memory_base");
+    WasmSym::definedTableBase = symtab->addOptionalDataSymbol("__table_base");
----------------
yamt wrote:
see https://github.com/llvm/llvm-project/pull/153537
https://github.com/llvm/llvm-project/pull/128223
    
    
More information about the llvm-commits
mailing list