This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Apply global relocs before data relocs
ClosedPublic

Authored by sbc100 on Feb 13 2022, 8:02 AM.

Details

Summary

Since the code for apply data relocations can sometimes use
the values stored in he globals, they need to be relocated
before the data relocations can be run.

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

Diff Detail

Event Timeline

sbc100 created this revision.Feb 13 2022, 8:02 AM
sbc100 requested review of this revision.Feb 13 2022, 8:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2022, 8:02 AM
dschuff accepted this revision.Feb 16 2022, 2:29 PM
This revision is now accepted and ready to land.Feb 16 2022, 2:29 PM
This revision was automatically updated to reflect the committed changes.