bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/12549] --as-needed should ignore weak references


From: bugdal at aerifal dot cx
Subject: [Bug binutils/12549] --as-needed should ignore weak references
Date: Mon, 14 Jan 2013 15:50:47 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12549

--- Comment #9 from Rich Felker <bugdal at aerifal dot cx> 2013-01-14 15:50:47 
UTC ---
I agree there's room for different opinions here, but I believe --as-needed
should not include the library when all it does is resolve weak references.
This matches the static-linking behavior and, perhaps more importantly, matches
the purpose of making the reference weak: the fact that you don't need or want
the actual implementation linked in unless you're also linking something else
that depended on it being present.

If it's not acceptable for --as-needed to have this behavior, then a different
option to achieve the same thing is needed, and gcc needs to use that option
with libgcc_s to prevent it from being linked unconditionally.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]