diff options
author | Ian Lance Taylor <iant@google.com> | 2008-01-06 00:47:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-01-06 00:47:10 +0000 |
commit | d391083d3c938e56a0d0f3e03867d91369198d35 (patch) | |
tree | 424c6ed0d5a8fa8ec5e037cee0d3a425e48b9d3b /gold/layout.h | |
parent | 2969336b5ef220b001aae71ced8b87c654734725 (diff) | |
download | gdb-d391083d3c938e56a0d0f3e03867d91369198d35.zip gdb-d391083d3c938e56a0d0f3e03867d91369198d35.tar.gz gdb-d391083d3c938e56a0d0f3e03867d91369198d35.tar.bz2 |
Add support for -e and for ENTRY in linker scripts.
Diffstat (limited to 'gold/layout.h')
-rw-r--r-- | gold/layout.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/layout.h b/gold/layout.h index 131d6a6..a106ccc 100644 --- a/gold/layout.h +++ b/gold/layout.h @@ -241,6 +241,12 @@ class Layout has_static_tls() const { return this->has_static_tls_; } + // Set the name of the entry symbol. This is used by linker scripts + // which look like regular objects. + void + set_entry(const char* entry) + { this->entry_ = entry; } + // Dump statistical information to stderr. void print_stats() const; @@ -426,6 +432,9 @@ class Layout // A reference to the options on the command line. const General_options& options_; + // The name of the entry symbol. This is from the command line, or + // from a linker script, or is NULL. + const char* entry_; // The output section names. Stringpool namepool_; // The output symbol names. |