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

Rich Felker dalias@aerifal.cx
Thu Sep 6 00:29:00 GMT 2012


On Wed, Sep 05, 2012 at 11:12:07AM -0700, H.J. Lu wrote:
> Hi,
> 
> 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...

Rich



More information about the Libc-alpha mailing list