reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lld/wasm/Driver.cpp
  470   WasmSym::callCtors = symtab->addSyntheticFunction(
  477     WasmSym::applyRelocs = symtab->addSyntheticFunction(
  484     WasmSym::stackPointer =
  491     WasmSym::memoryBase =
  493     WasmSym::tableBase = createUndefinedGlobal("__table_base", &globalTypeI32);
  494     WasmSym::memoryBase->markLive();
  495     WasmSym::tableBase->markLive();
  498     WasmSym::stackPointer = createGlobalVariable("__stack_pointer", true, 0);
  499     WasmSym::stackPointer->markLive();
  506     WasmSym::initMemory = symtab->addSyntheticFunction(
  509     WasmSym::initMemoryFlag = symtab->addSyntheticDataSymbol(
  512     WasmSym::tlsBase = createGlobalVariable("__tls_base", true, 0);
  513     WasmSym::tlsSize = createGlobalVariable("__tls_size", false, 0);
  514     WasmSym::tlsAlign = createGlobalVariable("__tls_align", false, 1);
  515     WasmSym::initTLS = symtab->addSyntheticFunction(
  525   WasmSym::dsoHandle = symtab->addOptionalDataSymbol("__dso_handle");
  528     WasmSym::dataEnd = symtab->addOptionalDataSymbol("__data_end");
  531     WasmSym::globalBase = symtab->addOptionalDataSymbol("__global_base");
  532     WasmSym::heapBase = symtab->addOptionalDataSymbol("__heap_base");
  533     WasmSym::definedMemoryBase = symtab->addOptionalDataSymbol("__memory_base");
  534     WasmSym::definedTableBase = symtab->addOptionalDataSymbol("__table_base");
tools/lld/wasm/InputChunks.cpp
  315     writeUleb128(os, WasmSym::memoryBase->getGlobalIndex(), "memory_base");
  333       const GlobalSymbol* baseSymbol = WasmSym::memoryBase;
  335         baseSymbol = WasmSym::tableBase;
tools/lld/wasm/MarkLive.cpp
   65   if (sym == WasmSym::callCtors) {
   67       enqueue(WasmSym::applyRelocs);
   99     enqueue(WasmSym::callCtors);
  102     enqueue(WasmSym::initMemory);
tools/lld/wasm/OutputSections.cpp
  153         initExpr.Value.Global = WasmSym::memoryBase->getGlobalIndex();
tools/lld/wasm/SyntheticSections.cpp
  334   writeUleb128(os, WasmSym::initMemory->getFunctionIndex(), "function index");
  352     initExpr.Value.Global = WasmSym::tableBase->getGlobalIndex();
tools/lld/wasm/Writer.cpp
  215     auto *sp = cast<DefinedGlobal>(WasmSym::stackPointer);
  227   if (WasmSym::globalBase)
  228     WasmSym::globalBase->setVirtualAddress(memoryPtr);
  229   if (WasmSym::definedMemoryBase)
  230     WasmSym::definedMemoryBase->setVirtualAddress(memoryPtr);
  236   if (WasmSym::dsoHandle)
  237     WasmSym::dsoHandle->setVirtualAddress(dataStart);
  248     if (WasmSym::tlsSize && seg->name == ".tdata") {
  249       auto *tlsSize = cast<DefinedGlobal>(WasmSym::tlsSize);
  252       auto *tlsAlign = cast<DefinedGlobal>(WasmSym::tlsAlign);
  258   if (WasmSym::initMemoryFlag) {
  260     WasmSym::initMemoryFlag->setVirtualAddress(memoryPtr);
  266   if (WasmSym::dataEnd)
  267     WasmSym::dataEnd->setVirtualAddress(memoryPtr);
  283   if (WasmSym::heapBase)
  284     WasmSym::heapBase->setVirtualAddress(memoryPtr);
  718   uint32_t flagAddress = WasmSym::initMemoryFlag->getVirtualAddress();
  835   createFunction(WasmSym::initMemory, bodyContent);
  855   createFunction(WasmSym::applyRelocs, bodyContent);
  861   if (!WasmSym::callCtors->isLive())
  872       writeUleb128(os, WasmSym::applyRelocs->getFunctionIndex(),
  884   createFunction(WasmSym::callCtors, bodyContent);
  888   if (!WasmSym::initTLS->isLive())
  909       writeUleb128(os, WasmSym::tlsBase->getGlobalIndex(), "global index");
  926   createFunction(WasmSym::initTLS, bodyContent);
  933   if (!config->relocatable && !WasmSym::callCtors->isLive())
  986     if (WasmSym::definedTableBase)
  987       WasmSym::definedTableBase->setVirtualAddress(config->tableBase);