From owner-freebsd-amd64@FreeBSD.ORG Mon Mar 22 13:05:02 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 917A616A4CF; Mon, 22 Mar 2004 13:05:02 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6399543D31; Mon, 22 Mar 2004 13:05:02 -0800 (PST) (envelope-from peter@evilpete.dyndns.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id 197072A8DA; Mon, 22 Mar 2004 13:05:02 -0800 (PST) (envelope-from peter@overcee.wemm.org) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (Postfix) with ESMTP id 507A2E259; Mon, 22 Mar 2004 13:05:02 -0800 (PST) (envelope-from peter@overcee.wemm.org) Received: from overcee.wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (8.12.11/8.12.11) with ESMTP id i2ML4FhF084243; Mon, 22 Mar 2004 13:04:15 -0800 (PST) (envelope-from peter@overcee.wemm.org) Received: from localhost (localhost [[UNIX: localhost]]) by overcee.wemm.org (8.12.11/8.12.11/Submit) id i2ML4Fiv084242; Mon, 22 Mar 2004 13:04:15 -0800 (PST) (envelope-from peter) From: Peter Wemm To: obrien@freebsd.org Date: Mon, 22 Mar 2004 13:04:15 -0800 User-Agent: KMail/1.6.1 References: <200403212012.29053.peter@wemm.org> <20040322075328.GA20922@dragon.nuxi.com> In-Reply-To: <20040322075328.GA20922@dragon.nuxi.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403221304.15344.peter@wemm.org> cc: amd64@freebsd.org Subject: Re: 32 bit libraries - build hack X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 21:05:02 -0000 On Sunday 21 March 2004 11:53 pm, David O'Brien wrote: > On Sun, Mar 21, 2004 at 08:12:29PM -0800, Peter Wemm wrote: > > mkdir /lib32 > > mkdir /usr/lib32 > > mkdir /usr/local/lib32 > > mkdir /usr/X11R6/lib32 > > "lib32" should be reserved for 32-bit libs that are specific to AMD64 > (and either won't run on i386, or will run very sub-optimally). > These libs should live in lib/i386. Except that there aren't any amd64-specific 32 bit libs. There is no 32 bit pointer mode except for i386 mode. While we could configure gcc to use 32 bit longs in 64 bit apps, it doesn't solve the pointer problem. What is in these directories are the only '32 bit amd64 libraries' that we're ever likely to have. They can be compiled to use the fast syscall/sysret instructions instead of int 0x80 and then they'll be 'amd64 specific'. I just hadn't gotten around to it. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5