title: Removing type information from symbols partly
body: <p>As we learned recently, <a href="https://stackoverflow.com/questions/32217038/ntdll-module-not-loading-correctly-in-windbg-but-why">Microsoft has stripped type information from symbols</a> in some versions of <code>ntdll</code>.</p>
  
  <p>Imagine I have the source code of a library and I would like to publish public symbols, but remove some type definitions from that PDB, how would I technically achieve this, especially without breaking the PDB identity information (timestamp and checksum)?</p>
  
  <p>I could not find a <a href="https://msdn.microsoft.com/en-us/library/958x11bc.aspx" rel="nofollow noreferrer">compiler switch</a> in the online documentation that would allow me to pass a list of types to be excluded.</p>
  
  <p>Note that I don't want to switch from private symbols to public symbols but reduce public symbols.</p>