[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.
- [Bug binutils/12549] --as-needed should ignore weak references, ossman at cendio dot se, 2013/01/09
- [Bug binutils/12549] --as-needed should ignore weak references, hjl.tools at gmail dot com, 2013/01/09
- [Bug binutils/12549] --as-needed should ignore weak references, ossman at cendio dot se, 2013/01/10
- [Bug binutils/12549] --as-needed should ignore weak references, amodra at gmail dot com, 2013/01/10
- [Bug binutils/12549] --as-needed should ignore weak references, amodra at gmail dot com, 2013/01/10
- [Bug binutils/12549] --as-needed should ignore weak references, cvs-commit at gcc dot gnu.org, 2013/01/11
- [Bug binutils/12549] --as-needed should ignore weak references, ossman at cendio dot se, 2013/01/11
- [Bug binutils/12549] --as-needed should ignore weak references, hjl.tools at gmail dot com, 2013/01/14
- [Bug binutils/12549] --as-needed should ignore weak references,
bugdal at aerifal dot cx <=
- [Bug binutils/12549] --as-needed should ignore weak references, hjl.tools at gmail dot com, 2013/01/14
- [Bug binutils/12549] --as-needed should ignore weak references, bugdal at aerifal dot cx, 2013/01/14
- [Bug binutils/12549] --as-needed should ignore weak references, cvs-commit at gcc dot gnu.org, 2013/01/21