Skip to content

Add support for PE32+ (64-bit) winmd parsing, to re-enable managed assemblies#530

Merged
Scottj1s merged 1 commit into
masterfrom
scottj1s/pe32plus
Jul 19, 2019
Merged

Add support for PE32+ (64-bit) winmd parsing, to re-enable managed assemblies#530
Scottj1s merged 1 commit into
masterfrom
scottj1s/pe32plus

Conversation

@Scottj1s

Copy link
Copy Markdown
Member

Fixes #527


impl::image_section_header const* sections{};
uint32_t com_virtual_address{};
if (pe.OptionalHeader.Magic == 0x10B) // PE32

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer to define these two values as constants. The metadata writer should share the value.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, should do that for the DOS magic number too

@Scottj1s Scottj1s merged commit c441fb8 into master Jul 19, 2019
@Scottj1s Scottj1s deleted the scottj1s/pe32plus branch July 31, 2019 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support referencing a c# managed winmd

2 participants