bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/16403] Spurious undefined reference with --as-needed


From: amodra at gmail dot com
Subject: [Bug ld/16403] Spurious undefined reference with --as-needed
Date: Thu, 09 Jan 2014 15:19:57 +0000

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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amodra at gmail dot com

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
Wow, that's quite an unusual testcase.  The only reason you need libc.so.6 is
due to a reference from libc_nonshared.a.

libc.so:
GROUP ( libc.so.6 libc_nonshared.a  ld-linux.so.2 )

A workaround is to link -lc twice, or change libc.so to link libc.so.6 both
before and after libc_nonshared.a.

Another possible solution is to modify ld GROUP behaviour when --as-needed is
in effect.

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