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
Differential D119666
[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 Fixes: https://github.com/emscripten-core/emscripten/issues/13398
Diff Detail
Event TimelineHerald added subscribers: wingo, ecnelises, sunfish and 2 others. · View Herald TranscriptFeb 13 2022, 8:02 AM This revision is now accepted and ready to land.Feb 16 2022, 2:29 PM Closed by commit rGdabbab686151: [lld][WebAssembly] Apply global relocs before data relocs (authored by sbc100). · Explain WhyFeb 16 2022, 2:31 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 409412 lld/test/wasm/pie.ll
lld/wasm/Writer.cpp
|