I'm trying to calculate the CLI Header file offset using the optional header, I manually checked a sample .NET Assembly and noticed that the optional header gives me the RVA for the CLI Header which is 0x2008
and the file offset of the CLI Header is 0x208
. How can I calculate the file offset from the RVA?
Thanks.
相关问题
- C++/CLI: #pragma managed / unmanaged scope
- Why Do I need Econo JIT?
- Boxing and Unboxing [duplicate]
- Cannot load Windows PowerShell snap-in Microsoft.P
- Why does collection initializer work with getter-o
相关文章
- How does the CLR know the type of a boxed object?
- Unexpected behavior of Substring in C# [duplicate]
- How to use embedded registration-free manifest for
- How to debug exception not handled by CLR
- CLR cannot create .NET-based COM objects in UWP
- CLR2 Compiled C# COM Doesn't Work with .Net 4
- Call dll function works in IronPython, doesn't
- Are signed .net assemblies ever fully verified whe
The PE file contains a bunch of sections that get mapped to page aligned virtual addresses using the section table (just after the optional header).
So to read the CLI Header, you can either:
The Section table is described in ECMA-335 Partition II Section 25.3