Skip to content

Commit 1ce6678

Browse files
committed
runtime, CMake: add ImageInspectionWasm.cpp
1 parent a221ab1 commit 1ce6678

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

stdlib/public/runtime/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ set(swift_runtime_sources
5353
ImageInspectionELF.cpp
5454
ImageInspectionCOFF.cpp
5555
ImageInspectionStatic.cpp
56+
ImageInspectionWasm.cpp
5657
KeyPaths.cpp
5758
KnownMetadata.cpp
5859
Metadata.cpp

stdlib/public/runtime/ImageInspectionWasm.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- ImageInspectionStatic.cpp - image inspection for static stdlib ---===//
1+
//===----------------------------------------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//
@@ -24,6 +24,11 @@
2424
using namespace swift;
2525

2626
int swift::lookupSymbol(const void *address, SymbolInfo *info) {
27+
// Currently, Wasm doesn't have a standard stable ABI for exporting address <->
28+
// symbol table, it's work in progress. Also, there is no API to access such
29+
// information from Wasm binary side. It's accessible only from host VM.
30+
// See https://github.com/WebAssembly/tool-conventions/blob/main/DynamicLinking.md
31+
// Seems reasonable to use a stub for now.
2732
return 0;
2833
}
2934

0 commit comments

Comments
 (0)