bug-binutils
[Top][All Lists]
Advanced

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

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


From: peter0x44 at disroot dot org
Subject: [Bug ld/31761] New: Linker deletes output file even if linking fails
Date: Mon, 20 May 2024 13:32:46 +0000

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

            Bug ID: 31761
           Summary: Linker deletes output file even if linking fails
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: peter0x44 at disroot dot org
  Target Milestone: ---

For cases of compiler commands like:
gcc -o file.c -lm
file.c gets deleted, despite that the linking fails (undefined reference to
main)

gcc -fuse-ld=lld and -fuse-ld=mold don't have this problem, and the "output"
remains intact regardless of the mistake in the command.

Both BFD and gold will delete file.c in this case.

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