Added a testsuite. More support for COPY relocations.

This commit is contained in:
Ian Lance Taylor
2006-11-30 23:52:50 +00:00
parent 2621033b5d
commit 5a6f7e2db5
27 changed files with 1990 additions and 242 deletions

View File

@@ -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&);