testsuites

Robert Connolly robert at linuxfromscratch.org
Tue Dec 16 15:41:09 PST 2008


This is a note for developers.

To get the Binutils test suite to pass, use the specs from gcc pass1, fixing 
the startfile and dynamic linker path names, and add -fno-PIE to cc1 and 
cc1plus specs. Copy to /usr/lib/gcc/.../specs, and run the test suite. The 
test suite will use a vanilla gcc while testing the hardened Binutils 
applications and libraries, and should produce expected results.

I only tried this with the fpie specs, but it should also work with 
fstack-protector and fortify_source.

This should also work with GCC's test suite, except that the vanilla specs 
would go in gcc/specs before running the test suite.

At the very least the test suites for the toolchain are getting better.

robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/hlfs-dev/attachments/20081216/996fcd23/attachment.sig>


More information about the hlfs-dev mailing list