This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Fix for --relocatable and signature mismatches
ClosedPublic

Authored by sbc100 on May 11 2020, 5:43 PM.

Details

Summary

This is a followup to https://reviews.llvm.org/D78779.

When signatures mismatch we create set of variant symbols. Some of
the fields in these symbols were not be initialized correct.
Specifically we were seeing isUsedInRegularObj not being set correctly,
leading to the symbol not getting included in the symbol table
and a crash writing relections in --reloctable mode.

There is larger refactor due here, but this is a minimal change the
fixes the bug at hand.

Fixes: PR45645

Diff Detail

Event Timeline

sbc100 created this revision.May 11 2020, 5:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2020, 5:43 PM

I'm still working on trying to reproduce this in test case.

aheejin accepted this revision.May 13 2020, 5:41 AM

Thanks!

This revision is now accepted and ready to land.May 13 2020, 5:41 AM
This revision was automatically updated to reflect the committed changes.