]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld: write resolved path to included file to dependency-file
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 21 Sep 2023 06:03:09 +0000 (08:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 21 Sep 2023 06:03:09 +0000 (08:03 +0200)
commit0ad14a8c34c866f64271041cb69b0e8a05913de8
tree5352ef791b4835a3cf01b28fe4b8ccd8dcd78684
parentf21e7f44e49682c849be3936b3b401276816846d
ld: write resolved path to included file to dependency-file

In ldfile_open_command_file_1() name written to the dependency files is
the name as specified passed to the "INCLUDE" directive.
This is before include-path processing so the tracked dependency
location is most likely wrong.

Instead track the opened file at the point where the resolved path is
actually available, in try_open().

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
ld/ldfile.c