diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-07 07:33:46 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-07 07:33:46 +0000 |
commit | 516cb3d01efb6f72ffa445ada40003e4e9e8e23a (patch) | |
tree | 7d422728cec6c2217ab76106f6c01479e2f2db4a /gold/options.h | |
parent | 1ef1f3d387940683bcba12c0bee8c5adfdef4bc7 (diff) | |
download | gdb-516cb3d01efb6f72ffa445ada40003e4e9e8e23a.zip gdb-516cb3d01efb6f72ffa445ada40003e4e9e8e23a.tar.gz gdb-516cb3d01efb6f72ffa445ada40003e4e9e8e23a.tar.bz2 |
Support --oformat binary.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h index dbfb3bd..461a062 100644 --- a/gold/options.h +++ b/gold/options.h @@ -148,6 +148,20 @@ class General_options output_file_name() const { return this->output_file_name_; } + // --oformat: Output format. + + enum Output_format + { + // Ordinary ELF. + OUTPUT_FORMAT_ELF, + // Straight binary format. + OUTPUT_FORMAT_BINARY + }; + + Output_format + output_format() const + { return this->output_format_; } + // -r: Whether we are doing a relocatable link. bool is_relocatable() const @@ -371,6 +385,9 @@ class General_options { this->output_file_name_ = arg; } void + set_output_format(const char*); + + void set_relocatable() { this->is_relocatable_ = true; } @@ -544,6 +561,7 @@ class General_options Dir_list search_path_; int optimization_level_; const char* output_file_name_; + Output_format output_format_; bool is_relocatable_; Strip strip_; bool allow_shlib_undefined_; |