[all-commits] [llvm/llvm-project] 392aa9: [llvm-objcopy] Implement the PE-COFF specific --su...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Mon Jan 10 04:44:52 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 392aa97acc056d6d57f7a5b8f52cd9c3060869dd
      https://github.com/llvm/llvm-project/commit/392aa97acc056d6d57f7a5b8f52cd9c3060869dd
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-01-10 (Mon, 10 Jan 2022)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-objcopy.rst
    A llvm/test/tools/llvm-objcopy/COFF/pe-fields.test
    A llvm/test/tools/llvm-objcopy/COFF/subsystem.test
    M llvm/tools/llvm-objcopy/COFF/COFFConfig.h
    M llvm/tools/llvm-objcopy/COFF/COFFObjcopy.cpp
    M llvm/tools/llvm-objcopy/ConfigManager.cpp
    M llvm/tools/llvm-objcopy/ObjcopyOpts.td

  Log Message:
  -----------
  [llvm-objcopy] Implement the PE-COFF specific --subsystem option

This implements the parsing of the highly PE-COFF specific option
in ConfigManager.cpp, setting Optional<> values in COFFConfig, which
then are used in COFFObjcopy.

This should fix https://github.com/mstorsjo/llvm-mingw/issues/239.

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




More information about the All-commits mailing list