On 9/8/21 5:44 PM, Peter Maydell wrote: > Split guest-binary loader prototypes out into a new header > loader.h which we include only where required. > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > --- > linux-user/loader.h | 59 ++++++++++++++++++++++++++++++++++++++++++ > linux-user/qemu.h | 40 ---------------------------- > linux-user/elfload.c | 1 + > linux-user/flatload.c | 1 + > linux-user/linuxload.c | 1 + > linux-user/main.c | 1 + > linux-user/signal.c | 1 + > linux-user/syscall.c | 1 + > 8 files changed, 65 insertions(+), 40 deletions(-) > create mode 100644 linux-user/loader.h > > diff --git a/linux-user/loader.h b/linux-user/loader.h
> +void do_init_thread(struct target_pt_regs *regs, struct image_info *infop); > +abi_ulong loader_build_argptr(int envc, int argc, abi_ulong sp, > + abi_ulong stringp, int push_ptr); > +int loader_exec(int fdexec, const char *filename, char **argv, char **envp, > + struct target_pt_regs *regs, struct image_info *infop, > + struct linux_binprm *); Pre-existing invalid style alignment, otherwise: Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>