diff options
Diffstat (limited to 'gold/target.h')
-rw-r--r-- | gold/target.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gold/target.h b/gold/target.h index 039b97d..a031c40 100644 --- a/gold/target.h +++ b/gold/target.h @@ -83,6 +83,12 @@ class Target common_pagesize() const { return this->pti_->common_pagesize; } + // This is called to tell the target to complete any sections it is + // handling. After this all sections must have their final size. + void + finalize_sections(Layout* layout) + { return this->do_finalize_sections(layout); } + protected: // This struct holds the constant information for a child class. We // use a struct to avoid the overhead of virtual function calls for @@ -113,6 +119,11 @@ class Target : pti_(pti) { } + // Virtual function which may be implemented by the child class. + virtual void + do_finalize_sections(Layout*) + { } + private: Target(const Target&); Target& operator=(const Target&); |