This is an archive of the discontinued LLVM Phabricator instance.

[JITLink][COFF] Implement IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY/LIBRARY.
ClosedPublic

Authored by sunho on Jul 16 2022, 1:02 PM.

Details

Summary

Implement IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY/LIBRARY characteristics flag.

Since COFFObjectFile class will set undefined flag for symbols with no alias flag, ORC ObjectFileInterface will not pull in this symbol. So, we only need to make sure the scope is local. NOLIBRARY and LIBRARY are handled in the same way for now. (which is what lld does right now)

Diff Detail

Event Timeline

sunho created this revision.Jul 16 2022, 1:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2022, 1:02 PM
sunho requested review of this revision.Jul 16 2022, 1:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2022, 1:02 PM
sunho updated this revision to Diff 445734.Jul 19 2022, 1:56 AM
lhames accepted this revision.Jul 25 2022, 2:48 PM

LGTM. Thanks @sunho!

This revision is now accepted and ready to land.Jul 25 2022, 2:48 PM
This revision was landed with ongoing or failed builds.Jul 25 2022, 8:49 PM
This revision was automatically updated to reflect the committed changes.