From d391083d3c938e56a0d0f3e03867d91369198d35 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 6 Jan 2008 00:47:10 +0000 Subject: Add support for -e and for ENTRY in linker scripts. --- gold/options.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gold/options.h') 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, -- cgit v1.1