From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30340 invoked from network); 25 Oct 1998 01:38:12 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 25 Oct 1998 01:38:12 -0000 Received: from draal.physics.wisc.edu (mcelrath@draal.physics.wisc.edu [128.104.223.134]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA19848 for ; Sat, 24 Oct 1998 21:28:22 -0400 Received: from localhost (mcelrath@localhost) by draal.physics.wisc.edu (8.8.7/8.8.7) with SMTP id UAA00973 for ; Sat, 24 Oct 1998 20:28:21 -0500 Date: Sat, 24 Oct 1998 20:28:21 -0500 (CDT) From: Bob McElrath X-Sender: mcelrath@draal Reply-To: Bob McElrath To: axp-list@redhat.com Subject: Re: DU binaries and /sbin/loader (argv[0] problem?) (FIXED! PATCH!) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII BTW, Herbert, your return address hvr@hvrlab.ml.org doesn't work...you might want to look into it. On Sat, 24 Oct 1998, Herbert Riedel wrote: > Hi! > > On Fri, 23 Oct 1998, Bob McElrath wrote: > > > 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): > [..] > > 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 > I was aware of that... and even feeling guilty :) ;) > ...but what is the bprm->loader pointer used for anyway? Grepping the sources for loader, It seems that it is just a flag that says that there is a "loader" that has to be prepended to the memory space of the executable (I assume). It is checked in exec.c/setup_arg_pages(...) where it seems to be setting up argv space for the loader. It is also checked in binfmt_aout.c/create_aout_tables(...) and I think this grabs the info pointed to by loader and places it in user space to be run via the function put_user(...). I don't know what badness would happen if loader wasn't pointing to /sbin/loader here... > > 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 > I got that too... > > $ md5sum communicator-v45-export.alpha-dec-osf4.0.tar.gz > 29649266e726b400cbaa45a352140af9 > communicator-v45-export.alpha-dec-osf4.0.tar.gz > > Then I tried it on the same DU4.0b box where I grabbed the shlibs from and > there it gave me the same unresolved symbols... no further comment.. Ah, so it's netscape that sucks. But we knew that already... No sense in telling them. I can't count the number of bug reports I've *tried* to send to those bastards...never a response of any kind, and the bugs still exist... I'm going to go hack on mnemonic now. ;) -- 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_| \.___________________________________________________________________./