projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8a7c76
)
PR28673, input file 'gcov' is the same as output file
author
Alan Modra
<amodra@gmail.com>
Wed, 8 Dec 2021 09:23:54 +0000
(19:53 +1030)
committer
Alan Modra
<amodra@gmail.com>
Wed, 8 Dec 2021 10:00:48 +0000
(20:30 +1030)
PR 28673
* ldlang.c (open_output): Use local_sym_name when checking
output against input files rather than filename.
ld/ldlang.c
patch
|
blob
|
history
diff --git
a/ld/ldlang.c
b/ld/ldlang.c
index 64a8f602093065c9af7ac12dec734a630600fa58..a0ff122934406d83bd1225a520c34e4ad598df38 100644
(file)
--- 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->
file
name);
+ 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);