diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-08-05 10:36:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-05 10:36:48 +0200 |
commit | 15f3210d93c7069867374c960cdb93f763530ca2 (patch) | |
tree | 0060c011c2451bb8375eca57c2faa058fed4f5b8 /qemu_mode/patches/mips-fpu.diff | |
parent | 9864d9c189ee7f744b4fb791a035980c710974d1 (diff) | |
parent | a1c93f24d46504c29353ec64c8410b68624651f8 (diff) | |
download | afl++-15f3210d93c7069867374c960cdb93f763530ca2.tar.gz |
Merge pull request #492 from dozernz/stable
Fix support for mips in qemu mode
Diffstat (limited to 'qemu_mode/patches/mips-fpu.diff')
-rw-r--r-- | qemu_mode/patches/mips-fpu.diff | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qemu_mode/patches/mips-fpu.diff b/qemu_mode/patches/mips-fpu.diff new file mode 100644 index 00000000..646d167e --- /dev/null +++ b/qemu_mode/patches/mips-fpu.diff @@ -0,0 +1,15 @@ +--- a/linux-user/elfload.c 2020-07-13 20:10:37.776374566 -0700 ++++ b/linux-user/elfload.c 2020-07-13 20:11:51.794957015 -0700 +@@ -2667,6 +2667,11 @@ + char *elf_interpreter = NULL; + char *scratch; + ++ memset(&interp_info, 0, sizeof(interp_info)); ++#ifdef TARGET_MIPS ++ interp_info.fp_abi = MIPS_ABI_FP_UNKNOWN; ++#endif ++ + info->start_mmap = (abi_ulong)ELF_START_MMAP; + + load_elf_image(bprm->filename, bprm->fd, info, + |