aboutsummaryrefslogtreecommitdiff
path: root/ld/ldfile.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-07-05 21:33:01 +0930
committerAlan Modra <amodra@gmail.com>2023-07-06 10:39:40 +0930
commit5f60df9974516867c02562b56c3a98cf4714a915 (patch)
tree586f9e6572f4c5e36885744947efb7de4d26d9e5 /ld/ldfile.c
parent0f5cb49f68ae1be4b9702e71c3a9b80ee46b310a (diff)
downloadgdb-5f60df9974516867c02562b56c3a98cf4714a915.zip
gdb-5f60df9974516867c02562b56c3a98cf4714a915.tar.gz
gdb-5f60df9974516867c02562b56c3a98cf4714a915.tar.bz2
Re: Stop the linker's --dependency-file option from including temporary lto files.
PR 30568 * ldfile.c (ldfile_try_open_bfd): Fix build failure when !BFD_SUPPORTS_PLUGINS.
Diffstat (limited to 'ld/ldfile.c')
-rw-r--r--ld/ldfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c
index c8a6874..9d9c036 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. */