diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-13 02:44:50 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-13 02:44:50 +0000 |
commit | 0daa6f62c88fe4d1dd680b09e855c4b8b7811403 (patch) | |
tree | f1d3948b1a9e9c87fa20dbac6b2437bcd81a3bf0 /gold/options.h | |
parent | caa9d5d9191af934ff7949fea080d72524c92cfa (diff) | |
download | binutils-gdb-0daa6f62c88fe4d1dd680b09e855c4b8b7811403.tar.gz |
Support selecting target by name.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gold/options.h b/gold/options.h index d62c2c26503..c484b55e5e4 100644 --- a/gold/options.h +++ b/gold/options.h @@ -37,6 +37,7 @@ #include <string> #include <vector> +#include "elfcpp.h" #include "script.h" namespace gold @@ -45,6 +46,7 @@ namespace gold class Command_line; class Input_file_group; class Position_dependent_options; +class Target; namespace options { @@ -157,11 +159,14 @@ class General_options { return this->output_file_name_; } // --oformat: Output format. - Object_format output_format() const { return this->output_format_; } + // Return the default target. + Target* + default_target() const; + // -r: Whether we are doing a relocatable link. bool is_relocatable() const @@ -562,6 +567,7 @@ class General_options int optimization_level_; const char* output_file_name_; Object_format output_format_; + const char* output_format_string_; bool is_relocatable_; Strip strip_; bool allow_shlib_undefined_; |