llvm-project
6ce14099 - [lld][WebAssembly] Report unsupported PIC relocations as errors (#104926)

Commit
1 year ago
[lld][WebAssembly] Report unsupported PIC relocations as errors (#104926) `WASM_MEMORY_ADDR_REL_` and `WASM_TABLE_INDEX_REL_` relocations against **undefined symbols** are not supported and, except for `UnresolvedPolicy::ReportError`, lead to incorrect Wasm code, such as invalid data address or invalid table index that cannot be patched during later dynamic Wasm linking with modules declaring those symbols. This is different to other relocations that support undefined symbols by declaring correspond Wasm imports. For more robust behavior, `wasm-ld` should probably report an error for such unsupported PIC relocations, independent of the `UnresolvedPolicy`.
Author
Parents
Loading