aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index 14e1629..c08b391 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -167,6 +167,11 @@ class General_options
Target*
default_target() const;
+ // -q: Whether to emit relocations.
+ bool
+ emit_relocs() const
+ { return this->emit_relocs_; }
+
// -r: Whether we are doing a relocatable link.
bool
relocatable() const
@@ -409,6 +414,10 @@ class General_options
set_oformat(const char*);
void
+ set_emit_relocs(bool value)
+ { this->emit_relocs_ = value; }
+
+ void
set_relocatable(bool value)
{ this->is_relocatable_ = value; }
@@ -615,6 +624,7 @@ class General_options
const char* output_file_name_;
Object_format oformat_;
const char* oformat_string_;
+ bool emit_relocs_;
bool is_relocatable_;
Strip strip_;
bool allow_shlib_undefined_;