mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 00:59:15 +08:00
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.
This commit is contained in:
@ -3400,7 +3400,7 @@ open_output (const char *name)
|
|||||||
f = f->next_real_file)
|
f = f->next_real_file)
|
||||||
if (f->flags.real)
|
if (f->flags.real)
|
||||||
{
|
{
|
||||||
char *in = lrealpath (f->filename);
|
char *in = lrealpath (f->local_sym_name);
|
||||||
if (filename_cmp (in, out) == 0)
|
if (filename_cmp (in, out) == 0)
|
||||||
einfo (_("%F%P: input file '%s' is the same as output file\n"),
|
einfo (_("%F%P: input file '%s' is the same as output file\n"),
|
||||||
f->filename);
|
f->filename);
|
||||||
|
Reference in New Issue
Block a user