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

Attachment: pgp9Qb2wYlRV5.pgp
Description: PGP signature

-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to