[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.
- [Bug ld/31761] New: Linker deletes output file even if linking fails,
peter0x44 at disroot dot org <=
- [Bug ld/31761] Linker deletes output file even if linking fails, peter0x44 at disroot dot org, 2024/05/20
- [Bug ld/31761] Linker deletes output file even if linking fails, address@hidden, 2024/05/20
- [Bug ld/31761] Linker deletes output file even if linking fails, peter0x44 at disroot dot org, 2024/05/20
- [Bug ld/31761] Linker deletes output file even if linking fails, nickc at redhat dot com, 2024/05/28
- [Bug ld/31761] Linker deletes output file even if linking fails, peter0x44 at disroot dot org, 2024/05/28
- [Bug ld/31761] Linker deletes output file even if linking fails, peter0x44 at disroot dot org, 2024/05/28
- [Bug ld/31761] Linker deletes output file even if linking fails, sam at gentoo dot org, 2024/05/28
- [Bug ld/31761] Linker deletes output file even if linking fails, amodra at gmail dot com, 2024/05/29
- [Bug ld/31761] Linker deletes output file even if linking fails, nickc at redhat dot com, 2024/05/29
- [Bug ld/31761] Linker deletes output file even if linking fails, peter0x44 at disroot dot org, 2024/05/29