Index: common/filepath.cc
--- common/filepath.cc.orig
+++ common/filepath.cc
@@ -56,6 +56,9 @@ std::string get_self_path() {
   path.resize(size);
   sysctl(mib, 4, path.data(), &size, NULL, 0);
   return path;
+#elif __OpenBSD__
+  std::string path("/usr/local/bin/mold");
+  return path;
 #else
   return std::filesystem::read_symlink("/proc/self/exe").string();
 #endif
