This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Add optional symbols after input file handling
ClosedPublic

Authored by sbc100 on Aug 7 2019, 6:52 PM.

Details

Summary

This allows undefined references in input files be resolved by the
optional symbols. Previously we were doing this before input file
reading which means it was working only for command line symbols
references (i.e. -u or --export).

Also use addOptionalDataSymbol for __dso_handle and make all optional
symbols hidden by default.

Event Timeline

sbc100 created this revision.Aug 7 2019, 6:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2019, 6:52 PM
sbc100 edited the summary of this revision. (Show Details)Aug 7 2019, 6:53 PM
sbc100 added reviewers: ruiu, tlively.
ruiu accepted this revision.Aug 8 2019, 1:01 AM

LGTM

Nice!

This revision is now accepted and ready to land.Aug 8 2019, 1:01 AM
This revision was automatically updated to reflect the committed changes.