[all-commits] [llvm/llvm-project] 7b3175: [LLD][COFF] Support /MAPINFO flag

pzhengqc via All-commits all-commits at lists.llvm.org
Tue Sep 20 14:39:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7b31756393ab313857ffe2f8a98cab1bce81fdd8
      https://github.com/llvm/llvm-project/commit/7b31756393ab313857ffe2f8a98cab1bce81fdd8
  Author: Pengxuan Zheng <pzheng at quicinc.com>
  Date:   2022-09-20 (Tue, 20 Sep 2022)

  Changed paths:
    M lld/COFF/Config.h
    M lld/COFF/Driver.cpp
    M lld/COFF/MapFile.cpp
    M lld/COFF/Options.td
    M lld/test/COFF/map.test

  Log Message:
  -----------
  [LLD][COFF] Support /MAPINFO flag

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.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D134247




More information about the All-commits mailing list