Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jul 2010 15:36:21 +1000
From:      Peter Jeremy <peterjeremy@acm.org>
To:        Tijl Coosemans <tijl@coosemans.org>
Cc:        pluknet <pluknet@gmail.com>, freebsd-arch@freebsd.org
Subject:   Re: Support for cc -m32
Message-ID:  <20100731053621.GA27772@server.vk2pj.dyndns.org>
In-Reply-To: <201007291718.12687.tijl@coosemans.org>

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

[-- Attachment #1 --]
On 2010-Jul-29 17:18:03 +0200, Tijl Coosemans <tijl@coosemans.org> 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.

-- 
Peter Jeremy

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (FreeBSD)

iEYEARECAAYFAkxTtlUACgkQ/opHv/APuIfUPwCgq6fgWy1GnMAcCZzFSW/CqvoR
5zMAn0JcWX8kNLllX+WA9oQsijaUanNP
=r5tm
-----END PGP SIGNATURE-----
home | help

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