HomePhabricator

[WebAssembly][lld] Fix crash when applying relocations to debug sections
Audit Requiredcf2b8722d4e3

Authored by sbc100 on Aug 20 2019, 11:39 AM.

Description

[WebAssembly][lld] Fix crash when applying relocations to debug sections

Debug sections are special in that they can contain relocations against
symbols that are not present in the final output (i.e. not live).
However it is also possible to have R_WASM_TABLE_INDEX relocations
against symbols that don't have a table index assigned (since they are
not address taken by actual code.

Fixes: https://github.com/emscripten-core/emscripten/issues/9023

Differential Revision: https://reviews.llvm.org/D66435

llvm-svn: 369423

Details

Auditors
grosbach
Committed
sbc100Aug 20 2019, 11:39 AM
Differential Revision
D66435: [WebAssembly][lld] Fix crash when applying relocations to debug sections
Parents
rGfc4486c2472b: [libc++] Implement LWG 3199
Branches
Unknown
Tags
Unknown