[RFA] Fix sysroot-tests, adding --print-sysroot

Alan Modra amodra@gmail.com
Fri Oct 17 08:58:00 GMT 2014
On Fri, Oct 17, 2014 at 06:19:13AM +0200, Hans-Peter Nilsson wrote:
> ld:
> 	Implement --print-sysroot in ld.
> 	* ldlex.h (enum option_values): Add entry OPTION_PRINT_SYSROOT.
> 	* lexsup.c (ld_options): Add entry for --print-sysroot.
> 	(parse_args) <OPTION_PRINT_SYSROOT>: Print sysroot and exit early.
> 
> ld/testsuite:
> 
> 	* ld-scripts/sysroot-prefix.exp: Log $ld_sysroot.  Handle sysroot
> 	== "/" as a separate sysroot-configuration with separable
> 	test-types.
> 	(sysroot_prefix_tests): Include all existing sysroot tests in
> 	sysroot == "/" tests except exclude those where a --sysroot option
> 	is not specified.
> 	* lib/ld-lib.exp (check_sysroot_available): Rewrite to use
> 	--print-sysroot instead of relying on error code from using
> 	--sysroot=...  Also, set $ld_sysroot.

OK, thanks!

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list