aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gold/options.h b/gold/options.h
index d62c2c2..c484b55 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_;