This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Revert moving of data relocations to start function
ClosedPublic

Authored by sbc100 on Jun 8 2022, 12:02 PM.

Details

Summary

Back in https://reviews.llvm.org/D117412 we moved the application of
data reloctions to the wasm start function.

However, because the dynamic linker doesn't know the final addresses
at module instantiation time, this proved to be too early and the
relocations could be applied with the wrong values.

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

Diff Detail

Event Timeline

sbc100 created this revision.Jun 8 2022, 12:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2022, 12:02 PM
Herald added subscribers: pmatos, asb, wingo and 4 others. · View Herald Transcript
sbc100 requested review of this revision.Jun 8 2022, 12:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 8 2022, 12:02 PM
dschuff accepted this revision.Jun 9 2022, 5:36 PM
This revision is now accepted and ready to land.Jun 9 2022, 5:36 PM
This revision was landed with ongoing or failed builds.Jun 9 2022, 5:50 PM
This revision was automatically updated to reflect the committed changes.