From owner-freebsd-arch@FreeBSD.ORG Sat Jul 31 05:36:32 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 335271065676 for ; Sat, 31 Jul 2010 05:36:32 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail11.syd.optusnet.com.au (mail11.syd.optusnet.com.au [211.29.132.192]) by mx1.freebsd.org (Postfix) with ESMTP id B879F8FC18 for ; Sat, 31 Jul 2010 05:36:31 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c211-30-160-13.belrs4.nsw.optusnet.com.au [211.30.160.13]) by mail11.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o6V5aOWb018725 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 31 Jul 2010 15:36:26 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.4/8.14.4) with ESMTP id o6V5aNqc027887; Sat, 31 Jul 2010 15:36:23 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.4/8.14.4/Submit) id o6V5aLrS027886; Sat, 31 Jul 2010 15:36:21 +1000 (EST) (envelope-from peter) Date: Sat, 31 Jul 2010 15:36:21 +1000 From: Peter Jeremy To: Tijl Coosemans Message-ID: <20100731053621.GA27772@server.vk2pj.dyndns.org> References: <201007291718.12687.tijl@coosemans.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: <201007291718.12687.tijl@coosemans.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: pluknet , freebsd-arch@freebsd.org Subject: Re: Support for cc -m32 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jul 2010 05:36:32 -0000 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-Jul-29 17:18:03 +0200, Tijl Coosemans wrote: >I've put the initial version of some patches online to support cross >compilation of 32 bit binaries on amd64. It's modelled after how NetBSD >does this. I presume you are aware of gnu/112215 (and maybe others). >With these patches something like "cc -m32 -o test test.c -pthread -lm" >generates a program that runs on FreeBSD/i386. That's an improvement on my patches (in 112215) - they resulted in the i386 binaries having references to /libexec/ld-elf32.so.1 and /usr/lib32/*.so - so they would run in i386 compatibility mode on amd64 but not on native i386. >Feel free to test the patches and to comment on any part of them. I hope to get some time to do this in a few days. --=20 Peter Jeremy --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkxTtlUACgkQ/opHv/APuIfUPwCgq6fgWy1GnMAcCZzFSW/CqvoR 5zMAn0JcWX8kNLllX+WA9oQsijaUanNP =r5tm -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH--