tech-toolchain archive

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

Re: Fix -static with -lpthread

On Sun, Jun 27, 2010 at 02:28:36AM +0000, David Holland wrote:
> On Sat, Jun 26, 2010 at 01:41:39AM +0200, Joerg Sonnenberger wrote:
>  > attached is a patch to fix PR 37454 (segmentation fault when using
>  > libpthread in static linked programs). I can't find a cleaner way to
>  > force initfini.o to pulled in. The approach of the patch is to reference
>  > it from exit.o as crt0.o calls exit and there by pulls in exit.o.
> ...why not just reference it from crt0?

Because it is an implementation detail of libc.


Home | Main Index | Thread Index | Old Index