Hardcode host-specific name for LTO plugin
[platform/upstream/binutils.git] / gold / defstd.cc
index 97afda8..cee68a0 100644 (file)
@@ -1,6 +1,6 @@
 // defstd.cc -- define standard symbols for gold.
 
-// Copyright 2006, 2007 Free Software Foundation, Inc.
+// Copyright (C) 2006-2014 Free Software Foundation, Inc.
 // Written by Ian Lance Taylor <iant@google.com>.
 
 // This file is part of gold.
@@ -109,54 +109,6 @@ const Define_symbol_in_section in_section[] =
     true                       // only_if_ref
   },
   {
-    "__rel_iplt_start",                // name
-    ".rel.iplt",               // output_section
-    0,                         // value
-    0,                         // size
-    elfcpp::STT_NOTYPE,                // type
-    elfcpp::STB_GLOBAL,                // binding
-    elfcpp::STV_HIDDEN,                // visibility
-    0,                         // nonvis
-    false,                     // offset_is_from_end
-    true                       // only_if_ref
-  },
-  {
-    "__rel_iplt_end",          // name
-    ".rel.iplt",               // output_section
-    0,                         // value
-    0,                         // size
-    elfcpp::STT_NOTYPE,                // type
-    elfcpp::STB_GLOBAL,                // binding
-    elfcpp::STV_HIDDEN,                // visibility
-    0,                         // nonvis
-    true,                      // offset_is_from_end
-    true                       // only_if_ref
-  },
-  {
-    "__rela_iplt_start",       // name
-    ".rela.iplt",              // output_section
-    0,                         // value
-    0,                         // size
-    elfcpp::STT_NOTYPE,                // type
-    elfcpp::STB_GLOBAL,                // binding
-    elfcpp::STV_HIDDEN,                // visibility
-    0,                         // nonvis
-    false,                     // offset_is_from_end
-    true                       // only_if_ref
-  },
-  {
-    "__rela_iplt_end",         // name
-    ".rela.iplt",              // output_section
-    0,                         // value
-    0,                         // size
-    elfcpp::STT_NOTYPE,                // type
-    elfcpp::STB_GLOBAL,                // binding
-    elfcpp::STV_HIDDEN,                // visibility
-    0,                         // nonvis
-    true,                      // offset_is_from_end
-    true                       // only_if_ref
-  },
-  {
     "__stack",                 // name
     ".stack",                  // output_section
     0,                         // value
@@ -189,6 +141,20 @@ const Define_symbol_in_segment in_segment[] =
     true                       // only_if_ref
   },
   {
+    "__ehdr_start",            // name
+    elfcpp::PT_LOAD,           // segment_type
+    elfcpp::PF(0),             // segment_flags_set
+    elfcpp::PF(0),             // segment_flags_clear
+    0,                         // value
+    0,                         // size
+    elfcpp::STT_NOTYPE,                // type
+    elfcpp::STB_GLOBAL,                // binding
+    elfcpp::STV_HIDDEN,                // visibility
+    0,                         // nonvis
+    Symbol::SEGMENT_START,     // offset_from_base
+    true                       // only_if_ref
+  },
+  {
     "etext",                   // name
     elfcpp::PT_LOAD,           // segment_type
     elfcpp::PF_X,              // segment_flags_set
@@ -298,7 +264,7 @@ const Define_symbol_in_segment in_segment[] =
     elfcpp::STV_DEFAULT,       // visibility
     0,                         // nonvis
     Symbol::SEGMENT_END,       // offset_from_base
-    false                      // only_if_ref
+    true                       // only_if_ref
   }
 };