diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-16 23:23:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-16 23:23:08 +0000 |
commit | 436ca963fd42564971f2906e4ba7263d513e483c (patch) | |
tree | 422fb94d22ab9e5df3475ff43c3b734625a489f2 /gold/parameters.h | |
parent | a360aedd0fd0e2c02c0896046bec126e6ad72308 (diff) | |
download | gdb-436ca963fd42564971f2906e4ba7263d513e483c.zip gdb-436ca963fd42564971f2906e4ba7263d513e483c.tar.gz gdb-436ca963fd42564971f2906e4ba7263d513e483c.tar.bz2 |
From Cary Coutant: preliminary shared library support.
Diffstat (limited to 'gold/parameters.h')
-rw-r--r-- | gold/parameters.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gold/parameters.h b/gold/parameters.h index c4e3fe3..4a19cb6 100644 --- a/gold/parameters.h +++ b/gold/parameters.h @@ -67,6 +67,14 @@ class Parameters output_is_object() const { return this->output_file_type_ == OUTPUT_OBJECT; } + // Whether we are generating position-independent output. + // This is the case when generating either a shared library + // or a regular executable with the --pic-executable option. + // FIXME: support --pic-executable + bool + output_is_position_independent() const + { return output_is_shared(); } + // The target system root directory. This is NULL if there isn't // one. const std::string& @@ -115,6 +123,11 @@ class Parameters optimization_level() const { return this->optimization_level_; } + // Whether the -E/--export-dynamic flag is set. + bool + export_dynamic() const + { return this->export_dynamic_; } + // Set whether we are doing a static link. void set_doing_static_link(bool doing_static_link); @@ -170,6 +183,8 @@ class Parameters bool is_big_endian_; // The optimization level. int optimization_level_; + // Whether the -E/--export-dynamic flag is set. + bool export_dynamic_; }; // This is a global variable. |