[all-commits] [llvm/llvm-project] b91905: [lld-link] Support /map option, matching link.exe ...

sylvain-audi via All-commits all-commits at lists.llvm.org
Tue Mar 24 06:49:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b91905a26378f03c9b56126207771829d89cdcb7
      https://github.com/llvm/llvm-project/commit/b91905a26378f03c9b56126207771829d89cdcb7
  Author: Sylvain Audi <sylvain.audi at ubisoft.com>
  Date:   2020-03-24 (Tue, 24 Mar 2020)

  Changed paths:
    M lld/COFF/CMakeLists.txt
    M lld/COFF/Config.h
    M lld/COFF/Driver.cpp
    A lld/COFF/LLDMapFile.cpp
    A lld/COFF/LLDMapFile.h
    M lld/COFF/MapFile.cpp
    M lld/COFF/Options.td
    M lld/COFF/Writer.cpp
    A lld/test/COFF/Inputs/map.yaml
    R lld/test/COFF/lldmap.test
    A lld/test/COFF/map.test

  Log Message:
  -----------
  [lld-link] Support /map option, matching link.exe 's /map output format

Added support for /map and /map:[filepath].
The output was derived from Microsoft's Link.exe output when using that same option.
Note that /MAPINFO support was not added.

The previous implementation of MapFile.cpp/.h was meant for /lldmap, and was renamed to LLDMapFile.cpp/.h
MapFile.cpp/.h is now for /MAP
However, a small fix was added to lldmap, replacing a std::sort with std::stable_sort to enforce reproducibility.

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




More information about the All-commits mailing list