2009-10-22 Hui Zhu <teawater@gmail.com>
[deliverable/binutils-gdb.git] / gold / symtab.h
index d186cc17bb5f2e0be4f22701ca168be8467af97d..d1cd64761ccabc389a1f39e93fab7e3c840d603f 100644 (file)
@@ -533,7 +533,7 @@ class Symbol
   // Return true if this symbol is a function that needs a PLT entry.
   // If the symbol is defined in a dynamic object or if it is subject
   // to pre-emption, we need to make a PLT entry. If we're doing a
-  // static link, we don't create PLT entries.
+  // static link or a -pie link, we don't create PLT entries.
   bool
   needs_plt_entry() const
   {
@@ -542,6 +542,7 @@ class Symbol
       return false;
 
     return (!parameters->doing_static_link()
+           && !parameters->options().pie()
             && this->type() == elfcpp::STT_FUNC
             && (this->is_from_dynobj()
                 || this->is_undefined()
This page took 0.022799 seconds and 4 git commands to generate.