Files
llvm/lld/wasm/InputChunks.cpp
Sam Clegg c0cb513348 [lld][WebAssembly] Use writePtrConst helper function (#166228)
This is especially important for writing i32 values larger than 2gb
which need to be encoded as negative SLEB vales in the binary.

Without this change offsets over 2gb are wrongly encoded and cause
validation errors.

Fixes: https://github.com/emscripten-core/emscripten/issues/25706
2025-11-03 14:42:05 -08:00

21 KiB