Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2007 09:24:43 +0100
From:      Tom Evans <tevans.uk@googlemail.com>
To:        Peter Jeremy <peterjeremy@optushome.com.au>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: gcc -m32 option on amd64.
Message-ID:  <1185783883.1444.3.camel@localhost>
In-Reply-To: <20070728075553.GW1152@turion.vk2pj.dyndns.org>
References:  <200707271513.48639.sharadc@niksun.com> <20070727102027.GH1152@turion.vk2pj.dyndns.org> <1185553955.1457.8.camel@localhost> <20070728075553.GW1152@turion.vk2pj.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-lyV5EA5D10ilnKybwVv1
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sat, 2007-07-28 at 17:55 +1000, Peter Jeremy wrote:
> On 2007-Jul-27 17:32:35 +0100, Tom Evans <tevans.uk@googlemail.com> 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.
>=20
> 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
>=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

Sure. By 'incapable of linking i386 code' I mean that the default
toolchain of gcc invoking ld to assemble libraries and object files into
executables is incapable of doing so when compiling i386 code. I say
without serious amounts of work because, as you point out, it is
possible to do.

Any other english sentences you need explaining?

--=-lyV5EA5D10ilnKybwVv1
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQBGraBIlcRvFfyds/cRAjv5AJ9rHZKoMvjXYD1eiJMiY6B2LHDKAACgu6p8
fVuRuIgN28qibHLyhGK69YQ=
=2Bor
-----END PGP SIGNATURE-----

--=-lyV5EA5D10ilnKybwVv1--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1185783883.1444.3.camel>