MachO: Add ability to fetch exports with GetExports()

This commit is contained in:
Katy Coe
2020-07-18 19:05:15 +02:00
parent 67b979cd05
commit e74663a2ba
3 changed files with 100 additions and 1 deletions

View File

@@ -25,6 +25,8 @@ namespace Il2CppInspector
LC_DYSYMTAB = 0xb,
LC_SEGMENT_64 = 0x19,
LC_ENCRYPTION_INFO = 0x21,
LC_DYLD_INFO = 0x22,
LC_DYLD_INFO_ONLY = 0x80000022,
LC_FUNCTION_STARTS = 0x26,
LC_ENCRYPTION_INFO_64 = 0x2C,
@@ -90,6 +92,20 @@ namespace Il2CppInspector
public uint Size;
}
internal class MachODyldInfoCommand
{
public uint RebaseOffset;
public uint RebaseSize;
public uint BindOffset;
public uint BindSize;
public uint WeakBindOffset;
public uint WeakBindSize;
public uint LazyBindOffset;
public uint LazyBindSize;
public uint ExportOffset;
public uint ExportSize;
}
internal class MachOSymtabCommand
{
public uint SymOffset;