This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] BZ #5784: Build libpthread.a with ld -r


On Wed, Sep 5, 2012 at 5:35 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Wed, Sep 5, 2012 at 8:31 PM, Rich Felker wrote:
>> On Wed, Sep 05, 2012 at 11:12:07AM -0700, H.J. Lu wrote:
>>> This patch builds libpthread.a with ld -r.  Tested on x86-64 and ia32.
>>> OK to install?
>>
>> Can you explain the motivation for wanting to force the whole
>> libpthread.a to get linked into any static multithreaded program? This
>> sounds like gratuitous bloating unless there's a real problem that
>> arises when only the explicitly used parts are linked in, and in that
>> case I would suspect there's just some misuse of weak symbols or weak
>> references breaking things...
>
> the BZ # in the subject:
> http://sourceware.org/bugzilla/show_bug.cgi?id=5784
> which points you to the GCC PR:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33960#c9
> which contains some details as to what is failing
> -mike

I may have a solution.  We can define pthread symbols as
secondary:

https://groups.google.com/forum/?fromgroups=#!topic/generic-abi/tLbPI5mm5iY

and it may just work.


-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]