diff options
author | Alan Modra <amodra@gmail.com> | 2021-12-08 19:53:54 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-12-08 20:30:48 +1030 |
commit | da1ecf8919e3fe07fbec53240015dc3cc55dbd7c (patch) | |
tree | 8407e08a14ad982a921dbe2199a1cf9522d266b8 | |
parent | a8a7c763fdc5057684234feef94796ef9886aba8 (diff) | |
download | binutils-da1ecf8919e3fe07fbec53240015dc3cc55dbd7c.zip binutils-da1ecf8919e3fe07fbec53240015dc3cc55dbd7c.tar.gz binutils-da1ecf8919e3fe07fbec53240015dc3cc55dbd7c.tar.bz2 |
PR28673, input file 'gcov' is the same as output file
PR 28673
* ldlang.c (open_output): Use local_sym_name when checking
output against input files rather than filename.
-rw-r--r-- | ld/ldlang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 64a8f60..a0ff122 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -3400,7 +3400,7 @@ open_output (const char *name) f = f->next_real_file) if (f->flags.real) { - char *in = lrealpath (f->filename); + char *in = lrealpath (f->local_sym_name); if (filename_cmp (in, out) == 0) einfo (_("%F%P: input file '%s' is the same as output file\n"), f->filename); |