Allow target to adjust dynamic symbol value.
[deliverable/binutils-gdb.git] / gold / target.h
index bd512501b8f24a49c3ee3bce820a0414e894221f..aaf4b1ccaabb1a01769c7de70c69ff875ad811bd 100644 (file)
@@ -475,6 +475,11 @@ class Target
   dynamic_tag_custom_value(elfcpp::DT tag) const
   { return this->do_dynamic_tag_custom_value(tag); }
 
+  // Adjust the value written to the dynamic symbol table.
+  void
+  adjust_dyn_symbol(const Symbol* sym, unsigned char* view) const
+  { this->do_adjust_dyn_symbol(sym, view); }
+
  protected:
   // This struct holds the constant information for a child class.  We
   // use a struct to avoid the overhead of virtual function calls for
@@ -763,6 +768,11 @@ class Target
   do_dynamic_tag_custom_value(elfcpp::DT) const
   { gold_unreachable(); }
 
+  // This may be overridden by the child class.
+  virtual void
+  do_adjust_dyn_symbol(const Symbol*, unsigned char*) const
+  { }
+
  private:
   // The implementations of the four do_make_elf_object virtual functions are
   // almost identical except for their sizes and endianness.  We use a template.
This page took 0.024905 seconds and 4 git commands to generate.