From owner-freebsd-current@FreeBSD.ORG Sun Jan 6 21:51:16 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B7C116A46C for ; Sun, 6 Jan 2008 21:51:16 +0000 (UTC) (envelope-from andrew-freebsd@areilly.bpc-users.org) Received: from qsrv03sl.mx.bigpond.com (qsrv03sl.mx.bigpond.com [144.140.92.183]) by mx1.freebsd.org (Postfix) with ESMTP id 36E8613C4EC for ; Sun, 6 Jan 2008 21:51:16 +0000 (UTC) (envelope-from andrew-freebsd@areilly.bpc-users.org) Received: from oaamta02sl.mx.bigpond.com ([124.188.162.219]) by omta04sl.mx.bigpond.com with ESMTP id <20080106204241.ZYTK6742.omta04sl.mx.bigpond.com@oaamta02sl.mx.bigpond.com> for ; Sun, 6 Jan 2008 20:42:41 +0000 Received: from areilly.bpa.nu ([124.188.162.219]) by oaamta02sl.mx.bigpond.com with ESMTP id <20080106204241.VHGW25607.oaamta02sl.mx.bigpond.com@areilly.bpa.nu> for ; Sun, 6 Jan 2008 20:42:41 +0000 Received: (qmail 32906 invoked from network); 6 Jan 2008 20:42:09 -0000 Received: from localhost (HELO duncan.reilly.home) (127.0.0.1) by localhost with SMTP; 6 Jan 2008 20:42:09 -0000 Date: Mon, 7 Jan 2008 07:42:09 +1100 From: Andrew Reilly To: Danny Braniss Message-ID: <20080107074209.5c20f083@duncan.reilly.home> In-Reply-To: References: <477C82F0.5060809@freebsd.org> <863ateemw2.fsf@ds4.des.no> <200801032200.25650.peter.schuller@infidyne.com> <8663yac62d.fsf@ds4.des.no> <477E72FC.5070304@freebsd.org> <477EA466.6060204@FreeBSD.org> <477EFEAB.8090807@freebsd.org> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.3; amd64-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Dag-Erling=?ISO-8859-1?Q?Sm=F8@freebsd.o?=, =?ISO-8859-1?Q?rg, Jason Evans , ?= Tim Kientzle , rgrav , Peter Schuller Subject: Re: ELF dynamic loader name [was: sbrk(2) broken] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2008 21:51:16 -0000 On Sun, 06 Jan 2008 09:56:32 +0200 Danny Braniss wrote: > what Apple has is one file, that will run the appropiate binary if run > on an i386 or a ppc, not 2 different files - universal binary - not rosetta. Sure, but that's got a bunch of different driving factors. I don't know, for example, whether you can build a four-way executable (ia32, x86_64, ppc, ppc64). Well, you probably can, but I'd be a bit surprised if anyone has. FreeBSD supports even more architectures: it just doesn't scale. The best bet for something that has to run everywhere is probably LLVM or TNEF. The advantage that Unix has over MacOS is that we aren't trying to squeeze everything into single "application" directories. So it's reasonable to have "share", and select executables on the basis of PATH. That's how it has worked before. Most sites don't have more than two or three different architectures to support, anyway. If we do get much further with multi-architecture bin and lib, and people actively use these on diskless setups or multi-architecture hosts (amd64/ia32, or other 64/32 bit combinations being the most common) then perhaps it would be nice to have a share/bin where platform-independent scripts (shell, perl, python) as well as dynamic-translated binaries (JVM, LLVM, etc) can live? Cheers, -- Andrew