Fix internal error caused by IFUNC patch.
[deliverable/binutils-gdb.git] / gold / resolve.cc
index dd5b6b6afa619600bbbd1bb694671613f5bcfc9b..2dcf7b5b1e8c6431029fe3f53f4b43d41d841bc2 100644 (file)
@@ -98,13 +98,7 @@ Symbol::override_base(const elfcpp::Sym<size, big_endian>& sym,
   this->is_ordinary_shndx_ = is_ordinary;
   // Don't override st_type from plugin placeholder symbols.
   if (object->pluginobj() == NULL)
-    {
-      // Turn IFUNC symbols from shared libraries into normal FUNC symbols.
-      elfcpp::STT type = sym.get_st_type();
-      if (object->is_dynamic() && type == elfcpp::STT_GNU_IFUNC)
-       type = elfcpp::STT_FUNC;
-      this->type_ = type;
-    }
+    this->type_ = sym.get_st_type();
   this->binding_ = sym.get_st_bind();
   this->override_visibility(sym.get_st_visibility());
   this->nonvis_ = sym.get_st_nonvis();
This page took 0.023663 seconds and 4 git commands to generate.