Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* DU binaries and /sbin/loader (argv[0] problem?)
@ 1998-10-20 12:32 Aideen McConville
  1998-10-20 13:47 ` Herbert Riedel
  1998-10-24  4:24 ` DU binaries and /sbin/loader (argv[0] problem?) (FIXED! PATCH!) Bob McElrath
  0 siblings, 2 replies; 8+ messages in thread
From: Aideen McConville @ 1998-10-20 12:32 UTC (permalink / raw)
  To: axp-list

Hi,

I've tried running some 3.2 DU binaries under RH 5.1 (both 2.0.34 and
2.0.35 kernels) and don't know what to do about the "/sbin/loader
being passed as argv[0]" problem.

Communicator (communicator-v406-export.alpha-dec-osf3.2.tar.gz)
complains about "/sbin/loader: Fatal Error: loader cannot be invoked
directly" but then runs ok.

XEmacs (as built for DU3.2) gets very confused, thinking that
/sbin/loader is supposed to be the xemacs binary!

I tried Oleg Gusev's (oleg@leontief.ru) fix

[FAQ:how to send e-mail from netscape]

--- exec.c      Tue Jan 20 17:57:24 1998
+++ exec.c~     Tue Dec  2 18:35:05 1997
@@ -654,7 +654,7 @@
                dput(bprm->dentry);
                bprm->dentry = NULL;
                remove_arg_zero(bprm);
-               bprm->p = copy_strings(1, &bprm->filename, bprm->page, bprm->p, 2);
+               bprm->p = copy_strings(1, dynloader, bprm->page, bprm->p, 2);
                bprm->argc++;
                bprm->loader = bprm->p;
                dentry = open_namei(dynloader[0], 0, 0);

This worked for xemacs but sent communicator into a loop at startup.

Is there any other fix?

Thanks,
-- Aideen


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1998-10-28 13:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-20 12:32 DU binaries and /sbin/loader (argv[0] problem?) Aideen McConville
1998-10-20 13:47 ` Herbert Riedel
1998-10-21 16:53   ` Bob McElrath
1998-10-22 12:15     ` Discussion of DU/shlibs patch (was DU binaries and /sbin/loader (argv[0] problem?)) Herbert Riedel
1998-10-28 13:05       ` UDB serial port xstal freq? Carles Perello
1998-10-24  4:24 ` DU binaries and /sbin/loader (argv[0] problem?) (FIXED! PATCH!) Bob McElrath
1998-10-24 10:01   ` Herbert Riedel
1998-10-27  0:00     ` Kurt Garloff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox