-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Automatically port Reflection.PortableExecutable.DebugDirectory* APIs #3196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,30 @@ | |
</Base> | ||
<Docs> | ||
<summary>To be added.</summary> | ||
<remarks>To be added.</remarks> | ||
<remarks> | ||
<format type="text/markdown"><| | ||
|`EmbeddedPortablePdb`|[Embedded Portale PDB Debu Directory Entry (type 17)](https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PE-COFF.md#embedded-portable-pdb-debug-directory-entry-type-17)| | ||
|`PdbChecksum`|[PDB Checksum Debug Directory Entry (type 19)](https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PE-COFF.md#pdb-checksum-debug-directory-entry-type-19)| | ||
|`Reproducible`|See [Deterministic Debug Directory Entry (type 16)](https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PE-COFF.md#deterministic-debug-directory-entry-type-16)| | ||
|
||
### DebugDirectoryEntryType.Reproducible | ||
|
||
The tool that produced the deterministic PE/COFF file guarantees that the entire content of the file is based solely on documented inputs given to the tool (such as source files, resource files, compiler options, etc.) rather than ambient environment variables (such as the current time, the operating system, the bitness of the process running the tool, etc.). | ||
|
||
The value of the `TimeDateStamp` field in the COFF File Header of a deterministic PE/COFF file does not indicate the date and time when the file was produced and should not be interpreted that way. Instead, the value of the field is derived from a hash of the file content. The algorithm to calculate this value is an implementation detail of the tool that produced the file. | ||
|
||
The debug directory entry of type <xref:System.Reflection.PortableExecutable.DebugDirectoryEntryType.Reproducible> must have all fields except for <xref:System.Reflection.PortableExecutable.DebugDirectoryEntry.Type?displayProperty=nameWithType> zeroed. | ||
|
||
]]></format> | ||
</remarks> | ||
</Docs> | ||
<Members> | ||
<Member MemberName="CodeView"> | ||
|
@@ -42,7 +65,7 @@ | |
</ReturnValue> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be good to add an enum type description. |
||
<MemberValue>2</MemberValue> | ||
<Docs> | ||
<summary>To be added.</summary> | ||
<summary>Associated PDB file description.</summary> | ||
</Docs> | ||
</Member> | ||
<Member MemberName="Coff"> | ||
|
@@ -66,7 +89,7 @@ | |
</ReturnValue> | ||
<MemberValue>1</MemberValue> | ||
<Docs> | ||
<summary>To be added.</summary> | ||
<summary>The COFF debug information (line numbers, symbol table, and string table). This type of debug information is also pointed to by fields in the file headers.</summary> | ||
</Docs> | ||
</Member> | ||
<Member MemberName="EmbeddedPortablePdb"> | ||
|
@@ -89,7 +112,7 @@ | |
</ReturnValue> | ||
<MemberValue>17</MemberValue> | ||
<Docs> | ||
<summary>To be added.</summary> | ||
<summary><para>The entry points to a blob containing Embedded Portable PDB. The Embedded Portable PDB blob has the following format:</para><para>- blob ::= uncompressed-size data</para><para>- Data spans the remainder of the blob and contains a Deflate-compressed Portable PDB.</para></summary> | ||
</Docs> | ||
</Member> | ||
<Member MemberName="PdbChecksum"> | ||
|
@@ -110,7 +133,7 @@ | |
</ReturnValue> | ||
<MemberValue>19</MemberValue> | ||
<Docs> | ||
<summary>To be added.</summary> | ||
<summary>The entry stores a crypto hash of the content of the symbol file the PE/COFF file was built with. The hash can be used to validate that a given PDB file was built with the PE/COFF file and not altered in any way. More than one entry can be present if multiple PDBs were produced during the build of the PE/COFF file (e.g. private and public symbols).</summary> | ||
</Docs> | ||
</Member> | ||
<Member MemberName="Reproducible"> | ||
|
@@ -134,7 +157,17 @@ | |
</ReturnValue> | ||
<MemberValue>16</MemberValue> | ||
<Docs> | ||
<summary>To be added.</summary> | ||
<summary>The presence of this entry indicates a deterministic PE/COFF file. See the Remarks section for more information.</summary> | ||
<remarks> | ||
<format type="text/markdown"><![CDATA[ | ||
|
||
## Remarks | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Empty remarks? |
||
|
||
|
||
|
||
|
||
]]></format> | ||
</remarks> | ||
</Docs> | ||
</Member> | ||
<Member MemberName="Unknown"> | ||
|
@@ -158,7 +191,7 @@ | |
</ReturnValue> | ||
<MemberValue>0</MemberValue> | ||
<Docs> | ||
<summary>To be added.</summary> | ||
<summary>An unknown value that is ignored by all tools.</summary> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "should be ignored"? |
||
</Docs> | ||
</Member> | ||
</Members> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we provide a type description?