[binutils-gdb] Stop the linker's --dependency-file option from including temporary lto files.
Alan Modra
amodra@gmail.com
Thu Jul 6 01:30:53 GMT 2023
PR 30568
* ldfile.c (ldfile_try_open_bfd): Fix build failure when
!BFD_SUPPORTS_PLUGINS.
diff --git a/ld/ldfile.c b/ld/ldfile.c
index c8a6874978b..9d9c036dfab 100644
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -353,7 +353,9 @@ ldfile_try_open_bfd (const char *attempt,
}
/* PR 30568: Do not track lto generated temporary object files. */
+#if BFD_SUPPORTS_PLUGINS
if (!entry->flags.lto_output)
+#endif
track_dependency_files (attempt);
/* Linker needs to decompress sections. */
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list