[AArch64] Adjust layout emultempl/aarch64elf.em.
[deliverable/binutils-gdb.git] / ld / ldfile.c
index e19f55e6e04d4308d8bf5b6dd55c79ee2102706c..21bdbf404710ab57e735cd805daf4f9fc9de04d1 100644 (file)
@@ -142,6 +142,11 @@ ldfile_try_open_bfd (const char *attempt,
   /* Linker needs to decompress sections.  */
   entry->the_bfd->flags |= BFD_DECOMPRESS;
 
+#ifdef ENABLE_PLUGINS
+  if (entry->flags.lto_output)
+    entry->the_bfd->lto_output = 1;
+#endif
+
   /* If we are searching for this file, see if the architecture is
      compatible with the output file.  If it isn't, keep searching.
      If we can't open the file as an object file, stop the search
This page took 0.025345 seconds and 4 git commands to generate.