diff options
-rw-r--r-- | src/wasm-linker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-linker.cpp b/src/wasm-linker.cpp index e6a0a0514..e89c324b4 100644 --- a/src/wasm-linker.cpp +++ b/src/wasm-linker.cpp @@ -135,7 +135,7 @@ void Linker::layout() { if (relocation->kind == LinkerObject::Relocation::kData) { const auto& symbolAddress = staticAddresses.find(name); - assert(symbolAddress != staticAddresses.end()); + if (symbolAddress == staticAddresses.end()) Fatal() << "Unknown relocation: " << name << '\n'; *(relocation->data) = symbolAddress->second + relocation->addend; if (debug) std::cerr << " ==> " << *(relocation->data) << '\n'; } else { |