From ab15730e8eebc7619881d91081b79ced39a0edc4 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sat, 18 Jan 2020 04:59:32 +0100 Subject: [PATCH] ELF: Fix function table addresses were not mapped to image (#15) --- Il2CppInspector/FileFormatReaders/ElfReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInspector/FileFormatReaders/ElfReader.cs b/Il2CppInspector/FileFormatReaders/ElfReader.cs index 77e5e77..1e7cde8 100644 --- a/Il2CppInspector/FileFormatReaders/ElfReader.cs +++ b/Il2CppInspector/FileFormatReaders/ElfReader.cs @@ -298,7 +298,7 @@ namespace Il2CppInspector var init = MapVATR(conv.ULong(getDynamic(Elf.DT_INIT_ARRAY).d_un)); var size = getDynamic(Elf.DT_INIT_ARRAYSZ).d_un; - return conv.UIntArray(ReadArray(init, conv.Int(size) / (Bits / 8))); + return conv.UIntArray(ReadArray(init, conv.Int(size) / (Bits / 8))).Select(x => MapVATR(x)).ToArray(); } // Map a virtual address to an offset into the image file. Throws an exception if the virtual address is not mapped into the file.