From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 22 22:51:09 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11A3F106564A; Wed, 22 Aug 2012 22:51:09 +0000 (UTC) (envelope-from danismostlikely@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id A33FF8FC0A; Wed, 22 Aug 2012 22:51:08 +0000 (UTC) Received: by vcbgb22 with SMTP id gb22so180824vcb.13 for ; Wed, 22 Aug 2012 15:51:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=hVCvNN37hXmqRtaiDP+4TyzdNbGE44EWNLD1mj10jYY=; b=Fqq2wAaQ8+Obbkav2J9vun3Es2CBC6un9R4Kwsoo/lWnuku4BkChdVbp/G3HA7tL5W uIcomdEqdMDeGBSFUC1D6gkttiR+V6i5gQuoZCH6RKOwdZKsa/sWi1YFdeSu3EDBtjYT td0hQANJYex3HM12LhLZ74v44ZzdhmUqxzmuknQdiSY7Tu+DWfZQTfA6VQ8vBbcbPRsd +AXLmN2AHWU60yhZcVRyZvLCG583Z/F7GBN9+BScSpYTpKg+tSEmNjNzRgLp9AQr6M1t xEdXjzuG2SrAhqSTj7rF9UmeXkwjxzJZYLga6r6CKZ0eUr+2gkYMZ+ob2KO+aQ97kZ19 VtQQ== MIME-Version: 1.0 Received: by 10.221.10.148 with SMTP id pa20mr6704986vcb.26.1345675868002; Wed, 22 Aug 2012 15:51:08 -0700 (PDT) Received: by 10.58.91.169 with HTTP; Wed, 22 Aug 2012 15:51:07 -0700 (PDT) In-Reply-To: References: <20120821084930.GM33100@deviant.kiev.zoral.com.ua> <50353C77.2070602@freebsd.org> Date: Wed, 22 Aug 2012 16:51:07 -0600 Message-ID: From: Dan McGregor To: Eric McCorkle Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-hackers@freebsd.org" , Tijl Coosemans Subject: Re: Build 32 bit binaries on amd64 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2012 22:51:09 -0000 I can't speak for Tijl, but being able to build anything simply by passing -m32 to the compiler is my goal. Did your Intel EFI work involve #defining _KERNEL anywhere? On 22 August 2012 16:04, Eric McCorkle wrote: > I ran into some bugs compiling things with -m32 in the intel EFI work. A= s things stand now, there's a lot more involved in setting up a 32 bit buil= d environment. I'm not sure if it's possible to reduce this down to passin= g -m32 to the compiler, though it would certainly be nice. > > Sent from my iPhone > > On Aug 22, 2012, at 4:09 PM, Tijl Coosemans wrote: > >> On 21-08-2012 17:04, Dan McGregor wrote: >>> My solution is certainly fairly hacky, I just took inspiration from >>> NetBSD. I wanted to see if it could be done. While I was there I did >>> identify several files that should be common between i386 and amd64, >>> such as exec.h. >>> >>> Since reading your email I started looking at the x86 common code, >>> and have made some more code common; specifically asm.h ans >>> ucontext.h. I'll be putting that on github shortly. >>> >>> Since it does look like tijl hasn't committed anything since March, >>> I would like to co-operate and see what his plans were. The idea of >>> merging the i386 and amd64 headers into a common area seems like a >>> better idea to me. >> >> For now my goal was to merge headers that can be used by user code so >> it can be compiled with -m32. Eventually, I think it would be nice to >> merge all headers and install x86/ as machine/ for both i386 and amd64. >> That would make the x86 headers similar to powerpc and mips headers >> (and arm when 64bit support is added there). >> >> I think I still have one or two (untested) patches. I'll have a look at >> it during the weekend. >>