Initial x32 support in gold
[deliverable/binutils-gdb.git] / gold / freebsd.h
index 8f0d46dfeff39d7e32bb248fec321163db73ee51..175dd0561cc74205d3ace655273b1b172ae600bc 100644 (file)
@@ -80,6 +80,17 @@ class Target_selector_freebsd : public Target_selector
     names->push_back(this->freebsd_bfd_name_);
   }
 
+  // Return appropriate BFD name.
+  virtual const char*
+  do_target_bfd_name(const Target* target)
+  {
+    if (!this->is_our_target(target))
+      return NULL;
+    return (target->osabi() == elfcpp::ELFOSABI_FREEBSD
+           ? this->freebsd_bfd_name_
+           : this->bfd_name_);
+  }
+
  private:
   // The BFD name for the non-Freebsd target.
   const char* bfd_name_;
This page took 0.02297 seconds and 4 git commands to generate.