diff --git a/app/build.gradle b/app/build.gradle index 3b3ce8b..a5137da 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -21,8 +21,8 @@ android { } ndk { - abiFilter("armeabi-v7a") -// abiFilter("arm64-v8a") +// abiFilter("armeabi-v7a") + abiFilter("arm64-v8a") } } diff --git a/lib/efl_parser.c b/lib/efl_parser.c index 9a1a106..dd6fff5 100644 --- a/lib/efl_parser.c +++ b/lib/efl_parser.c @@ -130,6 +130,10 @@ void *getInstructionAddressFromElf(const char *elf_file, const ASM_Instruction* } } off_t off = progbits_section->sh_addr + instruc_offset; + + if (elf_header != MAP_FAILED) + munmap(elf_header, size); + return (void *) ((size_t) base_address + off - bias); error_exit: