OSDN Git Service

* options.h (class General_options): Add --print-output-format.
authorian <ian>
Fri, 15 Jul 2011 21:43:08 +0000 (21:43 +0000)
committerian <ian>
Fri, 15 Jul 2011 21:43:08 +0000 (21:43 +0000)
commit09924439d070bc7858b91188ae55332b35ae8f7a
tree3c25c367708760a6fe95fd09a47df1ad04bf6a99
parent8bc6f9c7abe69e426e922e93de5fb3521004caf5
* options.h (class General_options): Add --print-output-format.
Move -EL next to -EB, for  better --help output.
* target-select.cc: Include <cstdio>, "options.h", and
"parameters.h".
(Target_selector::do_target_bfd_name): New function.
(print_output_format): New function.
* target-select.h (class Target_selector): Update declarations.
(Target_selector::target_bfd_name): New function.
(print_output_format): Declare.
* main.cc: Include "target-select.h".
(main): Handle --print-output-format.
* gold.cc: Include "target-select.h".
(queue_initial_tasks): Handle --print-output-format when there are
no input files.
* parameters.cc (parameters_force_valid_target): Give a better
error message if -EB/-EL does not match target.
* freebsd.h (Target_selector_freebsd::do_target_bfd_name): New
function.
gold/ChangeLog
gold/freebsd.h
gold/gold.cc
gold/main.cc
gold/options.h
gold/parameters.cc
gold/target-select.cc
gold/target-select.h