aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-10-20 20:40:49 +0000
committerIan Lance Taylor <iant@google.com>2006-10-20 20:40:49 +0000
commit92e059d8dc78c3f65e29e48e368f6e47ea0ab671 (patch)
treef448eb3317d9cbb0f5946422cc28ef157a5f65cb /gold/options.h
parentaf4658dc3db33004d6166b161588221ecb463a5f (diff)
downloadgdb-92e059d8dc78c3f65e29e48e368f6e47ea0ab671.zip
gdb-92e059d8dc78c3f65e29e48e368f6e47ea0ab671.tar.gz
gdb-92e059d8dc78c3f65e29e48e368f6e47ea0ab671.tar.bz2
Framework for relocation scanning. Implement simple static TLS
relocations.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/gold/options.h b/gold/options.h
index ba32ef5..7e890fa 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -14,6 +14,7 @@
#include <list>
#include <string>
+#include <vector>
namespace gold
{
@@ -52,6 +53,11 @@ class General_options
is_relocatable() const
{ return this->is_relocatable_; }
+ // --shared: Whether generating a shared object.
+ bool
+ is_shared() const
+ { return this->is_shared_; }
+
// --static: Whether doing a static link.
bool
is_static() const
@@ -74,12 +80,17 @@ class General_options
{ this->is_relocatable_ = true; }
void
+ set_shared()
+ { this->is_shared_ = true; }
+
+ void
set_static()
{ this->is_static_ = true; }
Dir_list search_path_;
const char* output_file_name_;
bool is_relocatable_;
+ bool is_shared_;
bool is_static_;
// Don't copy this structure.
@@ -143,6 +154,11 @@ class Input_argument
Position_dependent_options options_;
};
+// A list of input files.
+class Input_argument_list : public std::vector<Input_argument>
+{
+};
+
// All the information read from the command line.
class Command_line
@@ -164,8 +180,6 @@ class Command_line
options() const
{ return this->options_; }
- typedef std::list<Input_argument> Input_argument_list;
-
// Get the list of input files.
const Input_argument_list&
inputs() const