From: Nick Clifton Date: Wed, 28 Jun 2023 12:49:43 +0000 (+0100) Subject: Stop the linker's --dependency-file option from including temporary lto files. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b25c1a15cbac78e592d7a0c749dec2fcc175ec39;p=binutils-gdb.git Stop the linker's --dependency-file option from including temporary lto files. PR 30568 * ldfile.c (ldfile_try_open_bfd): Do not track lto generated temporary files. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 1467128eb61..084c96dce96 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2023-06-28 Nikita Popov + Nick Clifton + + PR 30568 + * ldfile.c (ldfile_try_open_bfd): Do not track lto generated + temporary files. + 2023-06-21 Nick Clifton PR 29072 diff --git a/ld/ldfile.c b/ld/ldfile.c index 4976367bbf0..c8a6874978b 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -352,7 +352,9 @@ ldfile_try_open_bfd (const char *attempt, return false; } - track_dependency_files (attempt); + /* PR 30568: Do not track lto generated temporary object files. */ + if (!entry->flags.lto_output) + track_dependency_files (attempt); /* Linker needs to decompress sections. */ entry->the_bfd->flags |= BFD_DECOMPRESS;