* Re: [binutils-gdb] Stop the linker's --dependency-file option from including temporary lto files.
[not found] <20230628125039.3B9B43858D35@sourceware.org>
@ 2023-07-06 1:30 ` Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2023-07-06 1:30 UTC (permalink / raw)
To: Nick Clifton; +Cc: binutils
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-06 1:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20230628125039.3B9B43858D35@sourceware.org>
2023-07-06 1:30 ` [binutils-gdb] Stop the linker's --dependency-file option from including temporary lto files Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).