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: nickc at redhat dot com
Subject: [Bug ld/29284] ld silently exits with empty input files with success
Date: Mon, 27 Jun 2022 14:29:34 +0000

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

--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Created attachment 14179
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14179&action=edit
Proposed Patch

Hi Jan,

  You are right in saying that we should not complain about empty input files.
  But I think that it is also reasonable to complain about empty output files.
  So what do you think of this patch ?

  With it applied I get behaviour like this:

    % ld empty.o -r
    ld: a.out: warning - empty output file - was this intended ?
    % echo $?
    1

  I am not sure if we will need an option to disable this warning.  Can you
  think of any situation where empty outputs are intended ?

Cheers
  Nick

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