All readers report format, endianness, word size and instruction set

This commit is contained in:
Katy Coe
2019-10-21 14:00:13 +02:00
parent de7218602e
commit e46cca08e0
5 changed files with 27 additions and 5 deletions

View File

@@ -21,6 +21,8 @@ namespace Il2CppInspector
public ElfReader(Stream stream) : base(stream) { }
public override string Format => "ELF";
public override string Arch {
get {
switch (elf_header.e_machine) {
@@ -34,6 +36,8 @@ namespace Il2CppInspector
}
}
public override int Bits => (elf_header.m_arch == 2) ? 64 : 32;
protected override bool Init() {
elf_header = ReadObject<elf_header>();