aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-07-15 21:43:08 +0000
committerIan Lance Taylor <ian@airs.com>2011-07-15 21:43:08 +0000
commitf1ddb6008e405707f7025369cfd7ec0ba442d128 (patch)
tree8cadf0eb5b35ef18245571f71b17ceb68418b9ea /gold/options.h
parent9e8b7a03dd9c4754ff3f18ca13a1dad851f4ec58 (diff)
downloadgdb-f1ddb6008e405707f7025369cfd7ec0ba442d128.zip
gdb-f1ddb6008e405707f7025369cfd7ec0ba442d128.tar.gz
gdb-f1ddb6008e405707f7025369cfd7ec0ba442d128.tar.bz2
* 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.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gold/options.h b/gold/options.h
index 8fa59d7..427e957 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -742,12 +742,12 @@ class General_options
DEFINE_special(EB, options::ONE_DASH, '\0',
N_("Link big-endian objects."), NULL);
- DEFINE_bool(eh_frame_hdr, options::TWO_DASHES, '\0', false,
- N_("Create exception frame header"), NULL);
-
DEFINE_special(EL, options::ONE_DASH, '\0',
N_("Link little-endian objects."), NULL);
+ DEFINE_bool(eh_frame_hdr, options::TWO_DASHES, '\0', false,
+ N_("Create exception frame header"), NULL);
+
DEFINE_bool(enum_size_warning, options::TWO_DASHES, '\0', true, NULL,
N_("(ARM only) Do not warn about objects with incompatible "
"enum sizes"));
@@ -927,6 +927,9 @@ class General_options
DEFINE_bool(preread_archive_symbols, options::TWO_DASHES, '\0', false,
N_("Preread archive symbols when multi-threaded"), NULL);
+ DEFINE_bool(print_output_format, options::TWO_DASHES, '\0', false,
+ N_("Print default output format"), NULL);
+
DEFINE_string(print_symbol_counts, options::TWO_DASHES, '\0', NULL,
N_("Print symbols defined and used for each input"),
N_("FILENAME"));