This is an archive of the discontinued LLVM Phabricator instance.

[LLD][COFF] Support /MAPINFO flag
ClosedPublic

Authored by pzheng on Sep 19 2022, 5:29 PM.

Details

Summary

This patch adds support for link.exe's /MAPINFO flag to lld-link.exe.

Here is a description of the flag from Microsoft
(https://learn.microsoft.com/en-us/cpp/build/reference/mapinfo-include-information-in-mapfile?view=msvc-170):

The /MAPINFO option tells the linker to include the specified information in a
mapfile, which is created if you specify the /MAP option. EXPORTS tells the
linker to include exported functions.

Diff Detail

Event Timeline

pzheng created this revision.Sep 19 2022, 5:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 19 2022, 5:29 PM
pzheng requested review of this revision.Sep 19 2022, 5:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 19 2022, 5:29 PM
rnk accepted this revision.Sep 20 2022, 2:06 PM

lgtm

This revision is now accepted and ready to land.Sep 20 2022, 2:06 PM
This revision was automatically updated to reflect the committed changes.