[all-commits] [llvm/llvm-project] 7dcd8e: [LLD] [MinGW] Respect the -S/-s options when writi...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Fri Dec 15 10:12:17 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7dcd8ef135147de1576c2863b963ec929a15e8cb
      https://github.com/llvm/llvm-project/commit/7dcd8ef135147de1576c2863b963ec929a15e8cb
  Author: Martin Storsjö <martin at martin.st>
  Date:   2023-12-15 (Fri, 15 Dec 2023)

  Changed paths:
    M lld/MinGW/Driver.cpp
    M lld/test/MinGW/driver.test

  Log Message:
  -----------
  [LLD] [MinGW] Respect the -S/-s options when writing PDB files (#75181)

This allows avoiding including some stray DWARF sections (e.g. from
toolchain provided files), when writing a PDB file.

While that probably could be considered reasonable default behaviour,
PDB writing and including DWARF sections are two entirely orthogonal
concepts, and GNU ld (which can generate PDB files these days) does
include DWARF unless -S/-s is passed, when creating a PDB.




More information about the All-commits mailing list