[all-commits] [llvm/llvm-project] a39b14: [ms] Add new /PDBSTREAM option to lld-link allowin...

Eric Astor via All-commits all-commits at lists.llvm.org
Tue Apr 7 13:20:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a39b14f0b42d6bd835dec448506660d77bbbb7c7
      https://github.com/llvm/llvm-project/commit/a39b14f0b42d6bd835dec448506660d77bbbb7c7
  Author: Eric Astor <epastor at google.com>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M lld/COFF/Config.h
    M lld/COFF/Driver.cpp
    M lld/COFF/Options.td
    M lld/COFF/PDB.cpp
    A lld/test/COFF/Inputs/stream.txt
    A lld/test/COFF/pdbstream.test

  Log Message:
  -----------
  [ms] Add new /PDBSTREAM option to lld-link allowing injection of streams into PDB files.

Summary:
/PDBSTREAM:<name>=<file> adds the contents of <file> to stream <name> in the resulting PDB.

This allows native uses with workflows that (for example) add srcsrv streams to PDB files to provide a location for the build's source files.

Results should be equivalent to linking with lld-link, then running Microsoft's pdbstr tool with the command line:
pdbstr.exe -w -p:<PDB LOCATION> -s:<name> -i:<file>
except in cases where the named stream overlaps with a default named stream, such as "/names". In those cases, the added stream will be overridden, making the /pdbstream option a no-op.

Reviewers: thakis, rnk

Reviewed By: thakis

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




More information about the All-commits mailing list