Skip to content

Commit

Permalink
linux-user: Read and set FP ABI value from MIPS abiflags
Browse files Browse the repository at this point in the history
Set fp_abi and interp_fp_abi values to current fp_abi value read from
MIPS.abiflags.

Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Signed-off-by: Stefan Markovic <smarkovic@wavecomp.com>
  • Loading branch information
Stefan Markovic authored and AMarkovic committed Oct 29, 2018
1 parent 5dd0db5 commit c94cb6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions linux-user/elfload.c
Expand Up @@ -2396,6 +2396,7 @@ static void load_elf_image(const char *image_name, int image_fd,
}
}
bswap_mips_abiflags(&abiflags);
info->fp_abi = abiflags.fp_abi;
#endif
}
}
Expand Down Expand Up @@ -2708,6 +2709,9 @@ int load_elf_binary(struct linux_binprm *bprm, struct image_info *info)
target_mmap(0, qemu_host_page_size, PROT_READ | PROT_EXEC,
MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
}
#ifdef TARGET_MIPS
info->interp_fp_abi = interp_info.fp_abi;
#endif
}

bprm->p = create_elf_tables(bprm->p, bprm->argc, bprm->envc, &elf_ex,
Expand Down

0 comments on commit c94cb6c

Please sign in to comment.