https://sourceware.org/bugzilla/show_bug.cgi?id=31761
--- Comment #11 from Nick Clifton <nickc at redhat dot com> --- (In reply to Jonathan Wakely from comment #10) > For the record, gcc won't even allow you to set the output to the name of an > input file: > > $ gcc foo.c -o foo.c > gcc: fatal error: input file ‘foo.c’ is the same as output file > compilation terminated. It is the same with ld: $ ld foo.o -o foo.o ld: input file 'foo.o' is the same as output file $ echo $? 1 But I still think that the linker could be a bit more paranoid about overwriting existing files, so I will see what I can do. -- You are receiving this mail because: You are on the CC list for the bug.