Default to --allow-shlib-undefined for now.
[deliverable/binutils-gdb.git] / gold / parameters.h
index 79545ac0ea94570f10bd6c3a11ff3e5c661480e3..ee60b10b4a0de868100903b88ec86f337c7b4c1d 100644 (file)
@@ -112,6 +112,14 @@ class Parameters
     return this->strip_ == STRIP_ALL || this->strip_ == STRIP_DEBUG;
   }
 
+  // Whether to permit unresolved references from shared libraries.
+  bool
+  allow_shlib_undefined() const
+  {
+    gold_assert(this->options_valid_);
+    return this->allow_shlib_undefined_;
+  }
+
   // Whether we are doing a symbolic link, in which all defined
   // symbols are bound locally.
   bool
@@ -121,6 +129,14 @@ class Parameters
     return this->symbolic_;
   }
 
+  // Whether we should try to detect violations of the One Definition Rule.
+  bool
+  detect_odr_violations() const
+  {
+    gold_assert(this->options_valid_);
+    return this->detect_odr_violations_;
+  }
+
   // The general linker optimization level.
   int
   optimization_level() const
@@ -216,8 +232,12 @@ class Parameters
   std::string sysroot_;
   // Which symbols to strip.
   Strip strip_;
+  // Whether to allow undefined references from shared libraries.
+  bool allow_shlib_undefined_;
   // Whether we are doing a symbolic link.
   bool symbolic_;
+  // Whether we try to detect One Definition Rule violations.
+  bool detect_odr_violations_;
   // The optimization level.
   int optimization_level_;
   // Whether the -E/--export-dynamic flag is set.
This page took 0.023171 seconds and 4 git commands to generate.