[all-commits] [llvm/llvm-project] 3e4214: [LLD][COFF] Add ignored linker flags (#150815)

kkent030315 via All-commits all-commits at lists.llvm.org
Tue Jul 29 02:07:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e42146fbce5362c94f5dd854779e5bbc8630dce
      https://github.com/llvm/llvm-project/commit/3e42146fbce5362c94f5dd854779e5bbc8630dce
  Author: kkent030315 <hrn832 at gmail.com>
  Date:   2025-07-29 (Tue, 29 Jul 2025)

  Changed paths:
    M lld/COFF/Options.td

  Log Message:
  -----------
  [LLD][COFF] Add ignored linker flags (#150815)

These flags were treated as explicit errors, which could cause
compatibility issues with MS link.exe. To address this, LLD was updated
to ignore them, aligning its behavior with MS link.exe. The latter two
options affect how MS link.exe generates metadata for its PGO. LLD
doesn't generate any such metadata right now (and doesn't work with the
MSVC PGO feature), so those options are kept as no-ops.

- Added `/emittoolversioninfo[:no]` flag in LLD/COFF options
- This flag emits a rich header between DOS stub and PE header. LLVM
does not emit the rich header at all.
- Added `/novcfeature` flag in LLD/COFF options
- Added `/nocoffgrpinfo` flag in LLD/COFF options



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list