Implement -q/--emit-relocs.

This commit is contained in:
Ian Lance Taylor
2008-02-27 22:38:18 +00:00
parent 20b4711e05
commit 7019cd2565
12 changed files with 293 additions and 41 deletions

View File

@@ -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
@@ -408,6 +413,10 @@ class General_options
void
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_;