This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Fix crash on used `__tls_base` symbol
ClosedPublic

Authored by sbc100 on Sep 9 2021, 9:04 AM.

Details

Summary

In the case that TLS is used in the single-threaded program, and
therefore effectively lowered away, we still optionally create a
__tls_base symbols, but the code for setting it was assuming it was
always created.

Diff Detail

Event Timeline

sbc100 created this revision.Sep 9 2021, 9:04 AM
sbc100 requested review of this revision.Sep 9 2021, 9:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 9 2021, 9:04 AM
sbc100 retitled this revision from [lld][WebAssembly] Fix crash on used __tls_base base to [lld][WebAssembly] Fix crash on used `__tls_base` symbol.
sbc100 updated this revision to Diff 371631.Sep 9 2021, 9:36 AM
  • rebase
dschuff accepted this revision.Sep 9 2021, 9:39 AM
This revision is now accepted and ready to land.Sep 9 2021, 9:39 AM
This revision was landed with ongoing or failed builds.Sep 9 2021, 9:46 AM
This revision was automatically updated to reflect the committed changes.