This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Symbol changes #4c: import weak, LLD only
ClosedPublic

Authored by ncw on Jan 19 2018, 10:24 AM.

Details

Summary

When D42105 was landed, a chunk from it was discarded.

This review re-commits that specific chunk, plus a test that exercises it.

Changes:

  • When using --emit-relocs or --relocatable, we really do need to import undefined weak symbols, since relocations are generated against them.
  • The relocatable.ll test has been updated with an import of a weak undefined symbol to illustrate the issue.

It's not possible to commit the test separately from the fix - without the fix, the test crashes!

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

ncw created this revision.Jan 19 2018, 10:24 AM
This revision was not accepted when it landed; it landed in state Needs Review.Jan 19 2018, 12:59 PM
This revision was automatically updated to reflect the committed changes.