2012-03-19 Doug Kwan <dougkwan@google.com>
[deliverable/binutils-gdb.git] / gold / target.h
index 10354273d2965d145862bf52e9b89bb7afbf7e28..ff97abaeb95a7c98e4e07285c28bfd04b9e14d16 100644 (file)
@@ -396,6 +396,11 @@ class Target
   set_osabi(elfcpp::ELFOSABI osabi)
   { this->osabi_ = osabi; }
 
+  // Define target-specific standard symbols.
+  void
+  define_standard_symbols(Symbol_table* symtab, Layout* layout)
+  { this->do_define_standard_symbols(symtab, 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
@@ -629,6 +634,11 @@ class Target
   do_select_as_default_target()
   { }
 
+  // This may be overridden by the child class.
+  virtual void
+  do_define_standard_symbols(Symbol_table*, Layout*)
+  { }
+
  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.022847 seconds and 4 git commands to generate.