This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Fix handling of mixed strong and weak references
ClosedPublic

Authored by sbc100 on Feb 24 2023, 10:12 AM.

Details

Summary

When adding a undefined symbols to the symbol table, if the existing
reference is weak replace the symbol flags with (potentially) non-weak
binding.

Fixes: https://github.com/llvm/llvm-project/issues/60829

Diff Detail

Event Timeline

sbc100 created this revision.Feb 24 2023, 10:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 24 2023, 10:12 AM
Herald added subscribers: pmatos, asb, wingo and 5 others. · View Herald Transcript
sbc100 requested review of this revision.Feb 24 2023, 10:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 24 2023, 10:12 AM
dschuff accepted this revision.Feb 27 2023, 10:03 AM
dschuff added inline comments.
lld/test/wasm/weak-undefined.s
48

Should these RUN lines all be at the top? that seems to be the convention in most test files AFAIK?

This revision is now accepted and ready to land.Feb 27 2023, 10:03 AM
sbc100 updated this revision to Diff 500878.Feb 27 2023, 12:34 PM
  • feedback
This revision was landed with ongoing or failed builds.Feb 27 2023, 2:22 PM
This revision was automatically updated to reflect the committed changes.