https://sourceware.org/bugzilla/show_bug.cgi?id=30063
Nick Clifton <nickc at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nickc at redhat dot com --- Comment #1 from Nick Clifton <nickc at redhat dot com> --- Hi Stas, I think that this problem has already been fixed: % ld-new -melf_i386 -shared --whole-archive libc.a ld-new: libc.a: member libc.a(acos.O) in archive is not an object % ld-new -melf_i386 -shared --whole-archive libc.a --version GNU ld (GNU Binutils) 2.40.50.20230131 In fact I think that it has been fixed for a while now. I tested as far back as 2.37 and it is fixed there. However - it does look like it might be a distribution specific problem. I checked Fedora rawhide (which uses binutils 2.39), and that certainly does produce the errors: % ld -melf_i386 -shared --whole-archive libc.a ld: libc.a(acos.O):fake:(.text+0x49): undefined reference to `_errno' [...] % ld --version GNU ld version 2.39-9.fc38 So I suggest that you refile this bug with whichever distribution you are using. Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug.