[fpc-pascal]about a last cprt21.as change
Peter Vreman
peter at freepascal.org
Mon Jun 3 07:35:16 CEST 2002
> about cprt21.as last change
> ïÔÐÒÁ×ÉÔÅÌØ: Sergey Korshunoff <seyko at comail.ru>
> ðÏÌÕÞÁÔÅÌØ: fpc-pascal at deadlock.et.tudelft.nl
> äÁÔÁ: Mon, 3 Jun 2002 05:21:03 +0400
>
> Hi!
> Look the LOG:
>
> # $Log: cprt21.as,v $
> # Revision 1.4 2001/06/04 18:05:47 peter
> # * use own dummy for _init and _fini
> #
>
> Question is: Why????
> This change make it impossible to use from a fpc main program a library
> (*.so) made by c++ (init code in library is not called)
>
> In attachment is a tar with diff's and tests for linking fpc programs
> and
> libs.
>
> One patch (how to mark a PASCALMAIN symbol as .hidden) may be
> not a good solution but it works (currently a fpc made main program
canno> t
> use a fpc made library -- init code in library is not called).
IIRC The problem was that crtbegin.o could not always be found
More information about the fpc-pascal
mailing list