diff options
author | Nick Clifton <nickc@redhat.com> | 2023-06-28 13:49:43 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-06-28 13:49:43 +0100 |
commit | b25c1a15cbac78e592d7a0c749dec2fcc175ec39 (patch) | |
tree | d92b6a3439c641a721cfd9d92b5bb46071ced911 | |
parent | 8527c3669487c255ecbeae6ffa0a7aff3dcb6920 (diff) | |
download | binutils-b25c1a15cbac78e592d7a0c749dec2fcc175ec39.zip binutils-b25c1a15cbac78e592d7a0c749dec2fcc175ec39.tar.gz binutils-b25c1a15cbac78e592d7a0c749dec2fcc175ec39.tar.bz2 |
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.
-rw-r--r-- | ld/ChangeLog | 7 | ||||
-rw-r--r-- | ld/ldfile.c | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 1467128..084c96d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2023-06-28 Nikita Popov <npopov@redhat.com> + Nick Clifton <nickc@redhat.com> + + PR 30568 + * ldfile.c (ldfile_try_open_bfd): Do not track lto generated + temporary files. + 2023-06-21 Nick Clifton <nickc@redhat.com> PR 29072 diff --git a/ld/ldfile.c b/ld/ldfile.c index 4976367..c8a6874 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; |