Date: Tue, 21 Aug 2012 12:54:40 +0700 From: =?ISO-8859-1?Q?=22C=2E_Bergstr=F6m=22?= <cbergstrom@pathscale.com> To: Dan McGregor <dan.mcgregor@usask.ca> Cc: freebsd-hackers@freebsd.org Subject: Re: Build 32 bit binaries on amd64 Message-ID: <503322A0.3080201@pathscale.com> In-Reply-To: <CACS%2B7ZQSSoxqY8cNDa=uM-o5NJmXBb3WYTZ7iNDK_nNjjughUg@mail.gmail.com> References: <CACS%2B7ZQSSoxqY8cNDa=uM-o5NJmXBb3WYTZ7iNDK_nNjjughUg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 08/21/12 09:32 AM, Dan McGregor wrote: > Hi. > > I've been working on porting compiler-rt/clang's support for address > sanitization (asan) to FreeBSD. So far I have it building and it > appears to work properly, however the build system expects to be able > to build 32 bit binaries on amd64. > > amd64 doesn't include i386's machine/foo headers. The included patch > is my proposed solution: > > Add i386 headers to /usr/include/i386, and in machine/foo.h, check if > it's a 32 bit build and include the appropriate header from i386. > > For example machine/ucontext.h will include i386/ucontext.h if > compiled with -m32. > > Thoughts? > > If anyone's curious about the compiler_rt port, I have it at > github.com/dannomac/compiler-rt on the branch named freebsd. Sorry for fencepost comment which may have no/little relevance here Changing the hierarchy to ISA/bits may make cross compiling easier in the future
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?503322A0.3080201>