From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 28 07:55:55 2007 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 84C9316A421 for ; Sat, 28 Jul 2007 07:55:55 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mx1.freebsd.org (Postfix) with ESMTP id 1F89C13C46B for ; Sat, 28 Jul 2007 07:55:54 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l6S7trZJ018582; Sat, 28 Jul 2007 17:55:53 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l6S7trSR018581; Sat, 28 Jul 2007 17:55:53 +1000 (EST) (envelope-from peter) Date: Sat, 28 Jul 2007 17:55:53 +1000 From: Peter Jeremy To: Tom Evans Message-ID: <20070728075553.GW1152@turion.vk2pj.dyndns.org> References: <200707271513.48639.sharadc@niksun.com> <20070727102027.GH1152@turion.vk2pj.dyndns.org> <1185553955.1457.8.camel@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NtwzykIc2mflq5ck" Content-Disposition: inline In-Reply-To: <1185553955.1457.8.camel@localhost> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.16 (2007-06-09) Cc: FreeBSD Hackers Subject: Re: gcc -m32 option 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: Sat, 28 Jul 2007 07:55:55 -0000 --NtwzykIc2mflq5ck Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Jul-27 17:32:35 +0100, Tom Evans wrote: >gcc on amd64 is capable of generating i386 code, but ld on amd64 is >incapable of linking i386 code together without serious amounts of work. Can you elaborate on what you mean by "incapable of linking i386 code"? The stock ld can definitely link i386 code: turion% ld -V GNU ld version 2.15 [FreeBSD] 2004-05-23 Supported emulations: elf_i386_fbsd elf_x86_64_fbsd turion%=20 There is a problem that the 32-bit pathnames on FreeBSD/amd64 are different to the 32-bit pathnames on FreeBSD/i386 (ie an i386 executable built on amd64 will point to /libexec/ld-elf32.so.1, rather than /libexec/ld-elf.so.1) so the result won't execute on a FreeBSD/i386 box - but I don't see that as a problem with ld, rather the configuration. --=20 Peter Jeremy --NtwzykIc2mflq5ck Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGqvaJ/opHv/APuIcRAiGPAJ9a7oZcY+MHSrUa9MbDW8+NLHlRjACcDubC HfHdWJwm9S6t4UAQ4Ri2fSM= =3zYe -----END PGP SIGNATURE----- --NtwzykIc2mflq5ck--