From owner-freebsd-current Tue Nov 28 17:17:38 2000 Delivered-To: freebsd-current@freebsd.org Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by hub.freebsd.org (Postfix) with ESMTP id 5416237B404 for ; Tue, 28 Nov 2000 17:17:36 -0800 (PST) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel3.hp.com (Postfix) with ESMTP id 07293589; Tue, 28 Nov 2000 17:17:36 -0800 (PST) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id RAA16762; Tue, 28 Nov 2000 17:17:35 -0800 (PST) Message-ID: <3A24592F.2D84B19@cup.hp.com> Date: Tue, 28 Nov 2000 20:17:35 -0500 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: dmaddox@sc.rr.com Cc: current@FreeBSD.ORG Subject: Re: Other Linux stuff... References: <20001128145340.A562@cae88-102-101.sc.rr.com> <3A243E39.2812E74E@cup.hp.com> <20001128183556.A4091@cae88-102-101.sc.rr.com> <3A2447DA.B6AA3002@cup.hp.com> <20001128191835.A5268@cae88-102-101.sc.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Donald J . Maddox" wrote: > > The Linux 'ldd' program is, as I'm sure you know, just a shell > script that tries to directly execute 'ld-linux.so.2' on the > filename passed in argv to the script. This doesn't work with our > Linux emulation. Apparently, ld-linux.so.2 is simply (and not too > surprisingly) not recognized as an executable file. While I'm > surprised that this works on Linux, shouldn't our emulator emulate > this behavior too? It's not a matter of our emulator. The problem is that Linux allows the execution of shared objects. Technically speaking this is wrong and our ELF loader doesn't do that. We can change our ELF loader, but that would propagate the bug to FreeBSD at large. I don't think we should do that. I did make patches once. They're probably outdated, but there's a change they apply: http://people.FreeBSD.org/~marcel/elf-2.2.8.diff http://people.FreeBSD.org/~marcel/elf-stable.diff http://people.FreeBSD.org/~marcel/elf-current.diff WARNING: -stable probably represents 3.x (which makes -current represent 4.x) -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message