[fpc-devel] Possible memory leak in cthread.

Marco van de Voort marcov at stack.nl
Wed Aug 5 15:59:03 CEST 2009


In our previous episode, Jonas Maebe said:
> > Since you mentioned cprt0, you could try checking the order of  
> > initialization of libc and libgcc. This may have something to do  
> > with it, see alsohttp://bugs.freepascal.org/view.php?id=14265
> 
> Indeed, that may very well be the reason.

I've been looking at this, and I think the link ordering can be easily
expanded with a group concept.

It already has -XLAc=c,gcc,gcc_eh syntax that could be used to define a
group.

I'll see if I can do this in the coming days, it could be enough to explore
the concept till there is a definite solution. Note that this only works for
libs, not for the .o files.



More information about the fpc-devel mailing list