bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/31761] Linker deletes output file even if linking fails


From: peter0x44 at disroot dot org
Subject: [Bug ld/31761] Linker deletes output file even if linking fails
Date: Tue, 28 May 2024 16:17:03 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=31761

--- Comment #4 from Peter Damianov <peter0x44 at disroot dot org> ---
I think the risk of potentially overwriting/deleting the source file due to a
user's mistake is more important than possibly causing confusion to inattentive
users who don't check the exit status or error messages.


I think the behavior exhibited is dubiously useful, and choosing the safer
option would be better. I would greatly prefer mold and lld's behavior here.

As you can see from the gcc bug, and several other times I have seen users do
this:

https://vxtwitter.com/tsoding/status/1756689101141524847/

I have also personally lost work due to this as well. Do you have anything
specific in mind that changing this behavior to match mold and lld would break?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]