This is an archive of the discontinued LLVM Phabricator instance.

[COFF] Make the weak aliases optional
ClosedPublic

Authored by mstorsjo on Aug 11 2017, 12:58 PM.

Details

Summary

When creating an import library from lld, the cases with Name != ExtName shouldn't end up as a weak alias, but as a real export of the new name, which is what actually is exported from the DLL.

This restores the behaviour of renamed exports to what it was in 4.0 - this is a regression since the introduction of llvm-dlltool.

The other half of this commit, including a test, goes into lld.

Diff Detail

Event Timeline

mstorsjo created this revision.Aug 11 2017, 12:58 PM
rnk accepted this revision.Aug 14 2017, 2:03 PM

lgtm

This revision is now accepted and ready to land.Aug 14 2017, 2:03 PM
This revision was automatically updated to reflect the committed changes.