From owner-freebsd-emulation@FreeBSD.ORG Fri Apr 18 03:47:12 2003 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B30637B401 for ; Fri, 18 Apr 2003 03:47:12 -0700 (PDT) Received: from pheidippides.md.chalmers.se (pheidippides.md.chalmers.se [129.16.237.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id EABFA43FBD for ; Fri, 18 Apr 2003 03:47:10 -0700 (PDT) (envelope-from pin@math.chalmers.se) Received: from hotlips.cs.chalmers.se (hotlips.cs.chalmers.se [129.16.225.36]) h3IAl9r04050 for ; Fri, 18 Apr 2003 12:47:09 +0200 (MET DST) Received: from localhost (pin@localhost) by hotlips.cs.chalmers.se (8.10.1/8.10.1) with ESMTP id h3IAl9O05577 for ; Fri, 18 Apr 2003 12:47:09 +0200 (MET DST) X-Authentication-Warning: hotlips.cs.chalmers.se: pin owned process doing -bs Date: Fri, 18 Apr 2003 12:47:09 +0200 (MET DST) From: Ivan Popov To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Linux emulation missing (?) feature X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2003 10:47:12 -0000 Hello, as a casual FreeBSD user I can have missed some recent updates, but to the best of my knowledge: I have tested Linux ABI on FreeBSD 4.7 and discovered a missing feature, that is important for me and can be very useful in general. On Linux it is totally legitimate to run ELF binaries with both an implicit loader (hardwired into the binary, most often like "/lib/ld-linux.so.2") and an explicit loader, say by doing (execve()-ing) /lib/ld-linux.so.2 /some/binary argu men ts [it is the same thing as with explicit choice of script interpreter instead of relying on #! or for overriding unsuitable #! ] The explicit loader choice is very important when you want to run different binaries with different versions of glibc. The loader and the glibc library have to match each other, so it is not enough to set a proper LD_LIBRARY_PATH, you have to either recompile a binary and hardwire a different loader path, or run the loader explicitely. The explicit loader works excellently on Linux, but not on FreeBSD. As for my tests, FreeBSD Linux ABI loader refuses to load and start a "shared library" /younameit/ld-linux.so.2, despite that it would suit as an executable as well. The question is - how hard would it be to implement the functionality? Is there a chance for it to be done? Regards, -- Ivan