* merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
[deliverable/binutils-gdb.git] / ld / ldlang.c
index a89fcf6d091b0bc19a2586b04217c5bc7f99bef6..6aea882a3d0a155183e8818659777cd40e6f8323 100644 (file)
@@ -4130,6 +4130,12 @@ lang_process ()
   if (command_line.gc_sections)
     lang_gc_sections ();
 
+  /* If there were any SEC_MERGE sections, finish their merging, so that
+     section sizes can be computed.  This has to be done after GC of sections,
+     so that GCed sections are not merged, but before assigning output
+     sections, since removing whole input sections is hard then.  */
+  bfd_merge_sections (output_bfd, &link_info);
+
   /* Size up the common data.  */
   lang_common ();
 
This page took 0.023511 seconds and 4 git commands to generate.