Skip to content
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

Metadata writer refactoring #7683

Closed
wants to merge 75 commits into from

Conversation

tmat
Copy link
Member

@tmat tmat commented Dec 23, 2015

Refactors PeWriter into components independent of Roslyn, so that it can later be moved to System.Reflection.Metadata in CoreFX.

The goal is to provide PE/COFF builder and ECMA-335 metadata builder that can be used broadly to write managed and native PE files. The goal is not to immediately provide the full support for writing all existing sections of the PE/COFF format but rather to enable composing PE/COFF files from section blobs and to provide builders for sections commonly appearing in managed PE files.

Includes implementation of a set of types, blob encoders that can be used for serialization of various blob structures found in the ECMA-335 metadata (especially signatures). The introduced abstraction provides type-system enforced structure to the blobs with minimal runtime overhead.

More work will follow to polish the public surface of the builders and serializers.

Tracked by work item: #6904

@tmat tmat added the PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. label Dec 23, 2015
@tmat tmat changed the title Metadata writer refactoring signatures Metadata writer refactoring: signatures Dec 23, 2015
@tmat tmat force-pushed the MetadataWriterRefactoring-Signatures branch 5 times, most recently from 30180a4 to 773f92d Compare December 30, 2015 21:39
@tmat tmat mentioned this pull request Dec 30, 2015
@tmat tmat force-pushed the MetadataWriterRefactoring-Signatures branch 3 times, most recently from 05b0c9f to 9fadcee Compare January 6, 2016 23:56
@tmat tmat mentioned this pull request Jan 6, 2016
@tmat tmat removed the PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. label Jan 6, 2016
@tmat tmat force-pushed the MetadataWriterRefactoring-Signatures branch 9 times, most recently from 70d5d23 to 5e8783d Compare January 10, 2016 23:46
@tmat tmat changed the title Metadata writer refactoring: signatures Metadata writer refactoring Jan 10, 2016
@tmat tmat force-pushed the MetadataWriterRefactoring-Signatures branch 5 times, most recently from 73a01b7 to 9cc178e Compare January 12, 2016 23:34
tmat added 25 commits February 1, 2016 11:06
…hod returned wrong value but the code path was not reachable anyways; fix return value of GetFileRefIndex
@tmat tmat force-pushed the MetadataWriterRefactoring-Signatures branch from 46d2a96 to 8cf201d Compare February 1, 2016 19:09
@tmat
Copy link
Member Author

tmat commented Mar 3, 2016

Superseded by #9459.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants