]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/ldlang.c
ELF: Discard a section if any of its linked-to sections has been discarded
[thirdparty/binutils-gdb.git] / ld / ldlang.c
index 91c160b560455a173c6c73e32ff7cc7effe85570..528ed22c1bc0902c972e8145ef8d6f070dfd8208 100644 (file)
@@ -7837,6 +7837,8 @@ lang_process (void)
      output statement, so that it isn't reordered.  */
   process_insert_statements (&lang_os_list.head->header.next);
 
+  ldemul_before_place_orphans ();
+
   /* Find any sections not attached explicitly and handle them.  */
   lang_place_orphans ();