This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Fix crash accessing non-live __tls_base symbol
ClosedPublic

Authored by sbc100 on Mar 17 2022, 10:40 AM.

Details

Summary

In programs that don't otherwise depend on __tls_base it won't
be marked as live. However this symbol is used internally in
a couple of places do we need to mark it as live explictily in
those places.

Fixes: #54386

Diff Detail

Event Timeline

sbc100 created this revision.Mar 17 2022, 10:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2022, 10:40 AM
sbc100 requested review of this revision.Mar 17 2022, 10:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2022, 10:40 AM
dschuff accepted this revision.Mar 17 2022, 1:06 PM
This revision is now accepted and ready to land.Mar 17 2022, 1:06 PM