This is an archive of the discontinued LLVM Phabricator instance.

[LLD] [COFF] Make -export-all-symbols work as intended for EXEs
ClosedPublic

Authored by mstorsjo on Jul 18 2021, 12:57 PM.

Details

Summary

If some symbols are marked with dllexport, we still want to export
all symbols if -export-all-symbols is specified. Previously, this
only worked as it should for DLL output, not for EXE.

This should fix downstream bug
https://github.com/msys2/MINGW-packages/issues/9163.

Diff Detail

Event Timeline

mstorsjo requested review of this revision.Jul 18 2021, 12:57 PM
mstorsjo created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2021, 12:57 PM

This allowed postgres to link its modules successfully. LGTM, for what that's worth.

mstorsjo accepted this revision.Jul 21 2021, 2:06 PM

This allowed postgres to link its modules successfully. LGTM, for what that's worth.

Marking the patch as accepted with this comment as approval - the patch itself is fairly trivial too. I'll go ahead and land it in today/tomorrow/soonish.

This revision is now accepted and ready to land.Jul 21 2021, 2:06 PM
mati865 accepted this revision.Jul 21 2021, 3:43 PM

LGTM sorry for the delay.