Re: Is it feasible to cross-build compat5x binary?
From: Ruslan Ermilov (ru_at_freebsd.org)
Date: 10/27/05
- Previous message: db: "Re: Non-executable stack"
- In reply to: David O'Brien: "Re: Is it feasible to cross-build compat5x binary?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 27 Oct 2005 22:35:17 +0300 To: obrien@freebsd.org, delphij@delphij.net, freebsd-security@freebsd.org, developers@freebsd.org
On Sun, Oct 23, 2005 at 04:29:35PM -0700, David O'Brien wrote:
> On Sun, Oct 23, 2005 at 06:52:30PM +0800, Xin LI wrote:
> > I think we need to update compat5x binary to fix FreeBSD-SA-05:21.openssl,
> > but will the binaries built by ``make universe'' be identical with actual
> > build on Alpha, Sparc64, etc? (Yes, I'm volunteering to do the work iff
> > they are identical ;-)
>
> We should no trust cross built libraries for this purpose at this time.
> We really don't know how identical the results will be to being natively
> built.
>
On -CURRENT they will be identical. I regularly do test cross-builds
and do binary compares from installworld/installkernel. The
infrastructure is there, and is activated by the CROSS_BUILD_TESTING
knob: it tries to eliminate as much difference as it can, with the
help of tools/build/cross-build, and ensuring the object directory
is the same on native and foreign architectures. Attached is the
script I use to test cross-builds. I pass it buildworld, buildkernel,
installworld, installkernel, and distribution targets, and then do
binary compares. The only known decrepancy at this time is with
file(1) data files on sparc64/non-sparc64.
Cheers,
-- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer
- application/pgp-signature attachment: stored
- Previous message: db: "Re: Non-executable stack"
- In reply to: David O'Brien: "Re: Is it feasible to cross-build compat5x binary?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]