aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-07-05 21:33:01 +0930
committerAlan Modra <amodra@gmail.com>2023-07-12 10:19:04 +0930
commit74e20e445b358c2f6884ab29cd832561a178e646 (patch)
tree686dda40ae80f93603bcc0b8e9aca8e3277bd968
parent91275768986c942cbf03c2485677298d91fb47a5 (diff)
downloadgdb-74e20e445b358c2f6884ab29cd832561a178e646.zip
gdb-74e20e445b358c2f6884ab29cd832561a178e646.tar.gz
gdb-74e20e445b358c2f6884ab29cd832561a178e646.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. (cherry picked from commit 5f60df9974516867c02562b56c3a98cf4714a915)
-rw-r--r--ld/ldfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c
index 14ba1f1..df7c9cb 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. */