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.