Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lld/wasm/InputChunks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,11 @@ bool InputChunk::generateRelocationCode(raw_ostream &os) const {
if (!requiresRuntimeReloc)
continue;

if (!isValidRuntimeRelocation(rel.getType()))
if (!isValidRuntimeRelocation(rel.getType())) {
error("invalid runtime relocation type in data section: " +
relocTypetoString(rel.Type));
continue;
}

uint64_t offset = getVA(rel.Offset) - getInputSectionOffset();
LLVM_DEBUG(dbgs() << "gen reloc: type=" << relocTypeToString(rel.Type)
Expand Down