summaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-27 22:38:18 +0000
committerIan Lance Taylor <iant@google.com>2008-02-27 22:38:18 +0000
commit7019cd256559b48bc642fcb8ff9a4ea9e98bced7 (patch)
treec88847678e9c212b482d4a30beccdd74abdd90c6 /gold/options.h
parent20b4711e0556d73b7a16250447ee5ca505b834db (diff)
downloadbinutils-gdb-7019cd256559b48bc642fcb8ff9a4ea9e98bced7.tar.gz
Implement -q/--emit-relocs.
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 14e1629e52e..c08b391f9f4 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_;