bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/29284] ld silently exits with empty input files with success


From: jengelh at inai dot de
Subject: [Bug ld/29284] ld silently exits with empty input files with success
Date: Tue, 28 Jun 2022 17:02:09 +0000

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

--- Comment #4 from Jan Engelhardt <jengelh at inai dot de> ---
Come to think of it, instead of truncation, compiler and linkers could:

 * unlink (optional, but worthwhile, since it retains the
   disk space usage pattern as truncation)
 * create temp file in target directory (O_TMPFILE where available,
   otherwise plain)
 * rename

That way, any intermediate state would not be exposed. Files of size 0 would
then be legitimate 0-sized files only.

-- 
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]