This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Add import info to `dylink` section of shared libraries
ClosedPublic

Authored by sbc100 on Oct 7 2021, 12:46 PM.

Diff Detail

Event Timeline

sbc100 created this revision.Oct 7 2021, 12:46 PM
sbc100 requested review of this revision.Oct 7 2021, 12:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2021, 12:46 PM
dschuff added inline comments.Oct 7 2021, 2:30 PM
lld/wasm/SyntheticSections.cpp
77–83

out exports and/or exports?

82
87

don't need sym->IsLive() in the inner condition now

91

is it only for weak undef symbols? What about just regular strong undef symbols?

sbc100 updated this revision to Diff 378020.Oct 7 2021, 2:56 PM
sbc100 marked 2 inline comments as done.

feedback

sbc100 added inline comments.Oct 12 2021, 5:14 PM
lld/wasm/SyntheticSections.cpp
91

We don't need to export any extra flags for that case.. i.e. strong is the default for imports.

sbc100 updated this revision to Diff 379227.Oct 12 2021, 5:20 PM
  • rebase
dschuff accepted this revision.Oct 15 2021, 10:48 AM
This revision is now accepted and ready to land.Oct 15 2021, 10:48 AM