From owner-freebsd-current Sun Feb 9 14:24:00 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA13409 for current-outgoing; Sun, 9 Feb 1997 14:24:00 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id OAA13396 for ; Sun, 9 Feb 1997 14:23:36 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id PAA25471; Sun, 9 Feb 1997 15:17:56 -0700 From: Terry Lambert Message-Id: <199702092217.PAA25471@phaeton.artisoft.com> Subject: Re: linux ELF codine no go on 2.2 Gamma To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Sun, 9 Feb 1997 15:17:56 -0700 (MST) Cc: terry@lambert.org, msmith@atrad.adelaide.edu.au, StevenR362@aol.com, rcarter@consys.com, current@freebsd.org In-Reply-To: <199702070151.MAA08739@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Feb 7, 97 12:21:29 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > % ln -s /compat/linux/.../somebinary ~/bin/somename > > % rehash > > % somename > > > > ... BOOM! > > Huh? There's no earth-shattering KABOOM from that - that's what you get > now. "BOOM!", not "KABOOM!"... as in "fails to foolow rule of least astonishment and operate as expected by the user". > > Also, if I type "foo", it doesn't look for "foo" in my path, then for > > "foo" in the same path in the compat hierarchy using the subdirectories > > of compat as virtual "/". The reason "compat" works at all is that > > it adulterates the path lookup using system calls *in the emulator's > > system call table*. If you aren't running the program from a Linux > > binary (for instance, a Linux binary for your shell), then it won't > > look in compat when trying to find the program to run it. > > ... unless you have /compat/* on your path. Yeah, you *could* have a huge path... show of hands? 8-). > > But it's one mother of a kludge to get arough changing the ld program > > with the patches that John Polstra already submitted to the Linux and > > GNU people. 8-). > > Given the latest glibc actually changes the dynamic linker to the _same_ > path as the SysV one, I can only see the current situation getting worse. > > All I'm proposing is adding an extra hint, that may help some people, > not trying to save the world. John's patches to the gld add an ABI tag to the files generated by gld; since the *only* files in Linux and FreeBSD, for all practical purposes, are those generated by gld/binutils, it stands to reason that it will fix the problem "The Right Way(tm)". Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.