[fpc-pascal] BUG: FPC must not expect main for shared library
KES
kes-kes at yandex.ru
Fri Nov 21 19:34:34 CET 2008
Здравствуйте, Jonas.
Вы писали 21 ноября 2008 г., 19:19:33:
JM> On 21 Nov 2008, at 18:04, KES wrote:
>> I think FPC must not expect 'main' entry point
JM> The "main" of an FPC shared library contains the code to run the
JM> initialisation routines of all units used by the library. The label of
JM> this code is however not called "main" (I can't remember that it ever
JM> was), and the FreeBSD startup code for is indeed wrong in calling it.
JM> For the FreeBSD maintainers: I guess you should use similar init/fini
JM> code as what is used for Linux (compiler/t_linux.pas, search for
JM> initname).
fpc -Ss does not help ((
--
С уважением,
KES mailto:kes-kes at yandex.ru
More information about the fpc-pascal
mailing list