2009-05-14 Paul Pluzhnikov <ppluzhnikov@google.com>
[deliverable/binutils-gdb.git] / gold / target.h
index 79111ce188228652b9eea70af25a79b80e08621b..fd6766e3b7b70c68983b152af3863e1644bd12fd 100644 (file)
@@ -167,6 +167,12 @@ class Target
   is_defined_by_abi(const Symbol* sym) const
   { return this->do_is_defined_by_abi(sym); }
 
+  // Adjust the output file header before it is written out.  VIEW
+  // points to the header in external form.  LEN is the length.
+  void
+  adjust_elf_header(unsigned char* view, int len) const
+  { return this->do_adjust_elf_header(view, len); }
+
  protected:
   // This struct holds the constant information for a child class.  We
   // use a struct to avoid the overhead of virtual function calls for
@@ -225,6 +231,14 @@ class Target
   do_is_defined_by_abi(const Symbol*) const
   { return false; }
 
+  // Adjust the output file header before it is written out.  VIEW
+  // points to the header in external form.  LEN is the length, and
+  // will be one of the values of elfcpp::Elf_sizes<size>::ehdr_size.
+  // By default, we do nothing.
+  virtual void
+  do_adjust_elf_header(unsigned char*, int) const
+  { }
+
  private:
   Target(const Target&);
   Target& operator=(const Target&);
This page took 0.023734 seconds and 4 git commands to generate.