|
From: | stsp at users dot sourceforge.net |
Subject: | [Bug ld/30063] New: inadequate error messages on wrong input file |
Date: | Tue, 31 Jan 2023 08:09:49 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30063 Bug ID: 30063 Summary: inadequate error messages on wrong input file Product: binutils Version: 2.39 Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: stsp at users dot sourceforge.net Target Milestone: --- Created attachment 14644 --> https://sourceware.org/bugzilla/attachment.cgi?id=14644&action=edit test case $ ld -melf_i386 -shared --whole-archive libc.a (libc.a is from attachment) This generates many "undefined reference" errors, which is weird with "-shared" and cannot be suppressed with "-z undefs" or any other options. Both lld and gold produce the right message: "ld.lld: error: libc.a(acos.O): not an ELF file" -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |