Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Bob McElrath <mcelrath@draal.physics.wisc.edu>
To: axp-list@redhat.com, debian-alpha@lists.debian.org,
	Linux Kernel List <linux-kernel@vger.rutgers.edu>,
	cadams@ro.com, jg@pa.dec.com
Subject: Re: DU binaries and /sbin/loader (argv[0] problem?) (FIXED!  PATCH!)
Date: Fri, 23 Oct 1998 23:24:17 -0500 (CDT)	[thread overview]
Message-ID: <Pine.LNX.3.96.981023231319.2356B-100000@draal> (raw)
In-Reply-To: <13868.32374.553367.438108@pan.persimmon.co.uk>

Attached is a patch that fixes the Digital UNIX loading code so that argv[0]
is properly set.  i.e. ps now reveals (for DU 4.0 netscape): 

mcelrath   398  0.3  6.4 22768 16528  ?  S    23:05   0:01 netscape 
mcelrath   399  0.0  1.5 16872  3896  ?  S    23:05   0:00 (dns helper) 

With no complaints about /sbin/loader.  I think that this is "The Right Way"
to do it.  Herbert Riedel's patch (posted a few days ago) seemed a bit hasty
in that it left the bprm->loader variable pointing to the executable, not
/sbin/loader, but this new patch is based on his.

Please test this and let me know your mileage (good *or* bad!).

The patch is also available at ftp://draal.physics.wisc.edu/pub/kernel/

On Tue, 20 Oct 1998, Aideen McConville wrote:

> 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!

XEmacs gives me symbol versioning problems (xemacs for DU3.2, I have libs
for DU4.0...) on libcurses.so.  Netscape 4.5 complains of unresolved symbols
in the binary!!!  (I don't think either of these problems are related to the
/sbin/loader stuff...)

-- Bob

  ./'^`\._./'~`\._./'~`\._./'~`\._./'#`\._./'~`\._./'~`\._./'~`\._./'^`\.
 / Rube Goldberg? Bah! Amateur! I give you..Windows 98! Linux everywhere \ 
| Linux, because everyone's work is mission critical.   ANYTHING inside.  |
|_Bob McElrath (mcelrath@wisconsin.cern.ch) Univ. of Wisconsin at Madison_|
  \.___________________________________________________________________./





  parent reply	other threads:[~1998-10-24  4:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Bob McElrath [this message]
1998-10-24 10:01   ` DU binaries and /sbin/loader (argv[0] problem?) (FIXED! PATCH!) Herbert Riedel
1998-10-27  0:00     ` Kurt Garloff
  -- strict thread matches above, loose matches on Subject: below --
1998-10-25  1:28 Bob McElrath
1998-10-26 15:23 ` Alvin Starr
1998-10-27  3:25   ` Bob McElrath
1998-10-27 16:11     ` Kurt Garloff
read-only archive

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