This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by sbc100 on Aug 19 2019, 12:25 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Aug 19 2019, 12:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2019, 12:25 PM
sbc100 retitled this revision from [WebAssembly][lld] Fix crash when appling relocations to debug sections to [WebAssembly][lld] Fix crash when applying relocations to debug sections.Aug 19 2019, 12:25 PM
sbc100 added a reviewer: ruiu.
ruiu accepted this revision.Aug 19 2019, 9:48 PM

LGTM

This revision is now accepted and ready to land.Aug 19 2019, 9:48 PM
This revision was automatically updated to reflect the committed changes.