Implement --print-sysroot in ld.
authorHans-Peter Nilsson <hp@bitrange.com>
Fri, 17 Oct 2014 11:06:56 +0000 (13:06 +0200)
committerHans-Peter Nilsson <hp@bitrange.com>
Fri, 17 Oct 2014 11:06:56 +0000 (13:06 +0200)
commitcb9322a80e3a92aceb7e325ab34f2a15edbae05a
tree72e1857a86b7a47fd64b5024347568594417a81c
parent32a8097ba5dd6ddb71c0fb2fccbac262c371846a
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/ldlex.h
ld/lexsup.c