diff options
author | 2021-04-29 19:34:34 -0600 | |
---|---|---|
committer | 2021-09-10 14:13:06 -0600 | |
commit | 1b50ff64a52b08bebb17d947eb95c18ba88fa20f (patch) | |
tree | 31cb49d39934a3d86a8f08f9eab9024babacf042 /bsd-user/qemu.h | |
parent | bsd-user: Fix calculation of size to allocate (diff) | |
download | qemu-1b50ff64a52b08bebb17d947eb95c18ba88fa20f.tar.xz qemu-1b50ff64a52b08bebb17d947eb95c18ba88fa20f.zip |
bsd-user: implement path searching
Use the PATH to find the executable given a bare argument. We need to do
this so we can implement mixing native and emulated binaries (e.g.,
execing a x86 native binary from an emulated arm binary to optimize
parts of the build). By finding the binary, we will know how to exec it.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'bsd-user/qemu.h')
-rw-r--r-- | bsd-user/qemu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 5237e35f9c..6b601ce4b5 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -124,7 +124,8 @@ struct bsd_binprm { int argc, envc; char **argv; char **envp; - char *filename; /* Name of binary */ + char *filename; /* (Given) Name of binary */ + char *fullpath; /* Full path of binary */ }; void do_init_thread(struct target_pt_regs *regs, struct image_info *infop); |