Fix internal error in do_relocate_sections when using plugins.
[deliverable/binutils-gdb.git] / gold / gold.cc
index e345887ac12956f088f10fe3d6c342c488f017ad..39843c28684f0c80ff74b7df7e983f97705227ba 100644 (file)
@@ -492,9 +492,6 @@ queue_middle_tasks(const General_options& options,
   if (timer != NULL)
     timer->stamp(0);
 
-  // Finalize the .eh_frame section.
-  layout->finalize_eh_frame_section();
-
   // Add any symbols named with -u options to the symbol table.
   symtab->add_undefined_symbols_from_command_line(layout);
 
@@ -555,6 +552,9 @@ queue_middle_tasks(const General_options& options,
       plugins->layout_deferred_objects();
     }
 
+  // Finalize the .eh_frame section.
+  layout->finalize_eh_frame_section();
+
   /* If plugins have specified a section order, re-arrange input sections
      according to a specified section order.  If --section-ordering-file is
      also specified, do not do anything here.  */
This page took 0.027257 seconds and 4 git commands to generate.