daily update
[deliverable/binutils-gdb.git] / gold / common.cc
index 8346c0bf4229516690bcefc602e165516bfe5c67..6acd2b5bd783acad3936e5644bcd1b13cf6fb0cf 100644 (file)
@@ -88,16 +88,7 @@ bool
 Sort_commons<size>::operator()(const Symbol* pa, const Symbol* pb) const
 {
   if (pa == NULL)
-    {
-      if (pb == NULL)
-       {
-         // Stabilize sort.  The order really doesn't matter, because
-         // these entries will be discarded, but we want to return
-         // the same result every time we compare pa and pb.
-         return pa < pb;
-       }
-      return false;
-    }
+    return false;
   if (pb == NULL)
     return true;
 
@@ -295,11 +286,12 @@ Symbol_table::do_allocate_commons_list(
       gold_unreachable();
     }
 
-  Output_data_space *poc = new Output_data_space(addralign, ds_name);
-  Output_section *os = layout->add_output_section_data(name,
+  Output_data_spacepoc = new Output_data_space(addralign, ds_name);
+  Output_sectionos = layout->add_output_section_data(name,
                                                       elfcpp::SHT_NOBITS,
-                                                      flags, poc, false,
-                                                      false, false, false);
+                                                      flags, poc,
+                                                      ORDER_INVALID,
+                                                      false);
   if (os != NULL)
     {
       if (commons_section_type == COMMONS_SMALL)
This page took 0.023559 seconds and 4 git commands to generate.