aboutsummaryrefslogtreecommitdiff
path: root/gold/freebsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/freebsd.h')
-rw-r--r--gold/freebsd.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gold/freebsd.h b/gold/freebsd.h
index 8f0d46d..175dd05 100644
--- a/gold/freebsd.h
+++ b/gold/freebsd.h
@@ -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_;