-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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,7 @@ | |
</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> | ||
</Docs> | ||
</Member> | ||
<Member MemberName="Unknown"> | ||
|
@@ -158,7 +181,7 @@ | |
</ReturnValue> | ||
<MemberValue>0</MemberValue> | ||
<Docs> | ||
<summary>To be added.</summary> | ||
<summary>An unknown value that should be ignored by all tools.</summary> | ||
</Docs> | ||
</Member> | ||
</Members> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?