Skip to content

Latest commit

 

History

History
57 lines (35 loc) · 2.12 KB

File metadata and controls

57 lines (35 loc) · 2.12 KB
description Learn more about: /PDBSTRIPPED (Strip Private Symbols)
title /PDBSTRIPPED (Strip Private Symbols)
ms.date 11/04/2016
f1_keywords
/pdbstripped
VC.Project.VCLinkerTool.StripPrivateSymbols
helpviewer_keywords
/PDBSTRIPPED linker option
-PDBSTRIPPED linker option
.pdb files, stripping private symbols
PDB files, stripping private symbols
PDBSTRIPPED linker option
ms.assetid 9b9e0070-6a13-4142-8180-19c003fbbd55

/PDBSTRIPPED (Strip Private Symbols)

/PDBSTRIPPED:pdb_file_name

Arguments

pdb_file_name
A user-specified name for the stripped program database (PDB) that the linker creates.

Remarks

The /PDBSTRIPPED option creates a second program database (PDB) file when you build your program image with any of the compiler or linker options that generate a PDB file (/DEBUG, /Z7, /Zd, or /Zi). This second PDB file omits symbols that you would not want to ship to your customers. The second PDB file will only contain:

  • Public symbols

  • The list of object files and the portions of the executable to which they contribute

  • Frame pointer optimization (FPO) debug records used to traverse the stack

The stripped PDB file will not contain:

  • Type information

  • Line number information

  • Per-object file CodeView symbols such as those for functions, locals, and static data

The full PDB file will still be generated when you use /PDBSTRIPPED.

If you do not create a PDB file, /PDBSTRIPPED is ignored.

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.

  2. Select the Configuration Properties > Linker > Debug property page.

  3. Modify the Strip Private Symbols property.

To set this linker option programmatically

  • See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.StripPrivateSymbols%2A.

See also

MSVC linker reference
MSVC Linker Options