summary refs log tree commit diff stats
path: root/bsd-user/bsdload.c
diff options
context:
space:
mode:
authorWarner Losh <imp@bsdimp.com>2021-04-30 08:17:23 -0600
committerWarner Losh <imp@bsdimp.com>2021-09-10 14:13:06 -0600
commitffa03665532d0b995cf547637d54a6af16b741c7 (patch)
tree1a33b44d73a94e370544922c9563e404a44da288 /bsd-user/bsdload.c
parent7ee0986965ca868476eeca1c661198cb5a8b3c29 (diff)
downloadfocaccia-qemu-ffa03665532d0b995cf547637d54a6af16b741c7.tar.gz
focaccia-qemu-ffa03665532d0b995cf547637d54a6af16b741c7.zip
bsd-user: remove a.out support
Remove still-born a.out support. The BSDs switched from a.out to ELF 20+ years
ago. It's out of scope for bsd-user, and what little support there was would
simply wind up at a not-implemented message. Simplify the whole mess by removing
it entirely. Should future support be required, it would be better to start from
scratch.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'bsd-user/bsdload.c')
-rw-r--r--bsd-user/bsdload.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/bsd-user/bsdload.c b/bsd-user/bsdload.c
index 32f7fd5dec..6aefc7a28b 100644
--- a/bsd-user/bsdload.c
+++ b/bsd-user/bsdload.c
@@ -98,7 +98,7 @@ static int prepare_binprm(struct bsd_binprm *bprm)
 
 /* Construct the envp and argv tables on the target stack.  */
 abi_ulong loader_build_argptr(int envc, int argc, abi_ulong sp,
-                              abi_ulong stringp, int push_ptr)
+                              abi_ulong stringp)
 {
     int n = sizeof(abi_ulong);
     abi_ulong envp;
@@ -108,13 +108,6 @@ abi_ulong loader_build_argptr(int envc, int argc, abi_ulong sp,
     envp = sp;
     sp -= (argc + 1) * n;
     argv = sp;
-    if (push_ptr) {
-        /* FIXME - handle put_user() failures */
-        sp -= n;
-        put_user_ual(envp, sp);
-        sp -= n;
-        put_user_ual(argv, sp);
-    }
     sp -= n;
     /* FIXME - handle put_user() failures */
     put_user_ual(argc, sp);