aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index 86d9bd7..4cb7608 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -108,6 +108,11 @@ class General_options
public:
General_options();
+ // -e: set entry address.
+ const char*
+ entry() const
+ { return this->entry_; }
+
// -E: export dynamic symbols.
bool
export_dynamic() const
@@ -312,6 +317,10 @@ class General_options
};
void
+ set_entry(const char* arg)
+ { this->entry_ = arg; }
+
+ void
set_export_dynamic()
{ this->export_dynamic_ = true; }
@@ -509,6 +518,7 @@ class General_options
void
add_sysroot();
+ const char* entry_;
bool export_dynamic_;
const char* soname_;
const char* dynamic_linker_;
@@ -824,6 +834,11 @@ class Command_line
void
end_group(const char* arg);
+ // Set the entry symbol from a linker script.
+ void
+ set_entry(const char* entry)
+ { this->options_.set_entry(entry); }
+
// Get an option argument--a helper function for special processing.
const char*
get_special_argument(const char* longname, int argc, char** argv,