<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>> Date: Tue, 5 Aug 2014 22:29:28 +0400<br><div>> From: sergei_gorelkin@mail.ru<br>> To: fpc-devel@lists.freepascal.org<br>> Subject: Re: [fpc-devel] fpc libraries do not work in freeBSD...<br>> <br>> 05.08.2014 22:02, Sven Barth пишет:<br>> > Am 05.08.2014 15:35 schrieb "Marco van de Voort" <marcov@stack.nl <mailto:marcov@stack.nl>>:<br>> > > But the FPC version has these symbols in the main program, maybe you must<br>> > > make sure that those (operatingsystem*) systems are available from the<br>> > > mainprogram too and preloaded with the proper values.<br>> ><br>> > The main program should not need to do anything here. It's more likely that there is a problem in<br>> > our FreeBSD startup files for libraries.<br>> ><br>> FreeBSD loader does not pass argc,argv and envp to shared library initialization procedure, like it <br>> happens on Linux. Since FPC does not have a shared RTL, such hack with exporting symbols from <br>> executable is likely an only way to initialize RTLs compiled into shared libraries.<br>> <br>> However starting from version 9.2 IIRC, FreeBSD loader looks more like Linux one, but it passes <br>> argc,argv and envp only to initialization procedures pointed at by DT_INIT_ARRAY, not to one pointed <br>> at by DT_INIT. I.e. fixing the issue requires changes to startup files/link scripts and means that <br>> no support for versions <9.2 will be available.<br>> <br>> Regards,<br>> Sergei<br><br>Yeeeeeep, Sergei, many many many thanks, you are the superman that i was waiting for.<br>It is more than exactly the problem that i have.<br><br>PS: I just post a message who talks about your earlier topics. (and i do not see your new one).<br><br>Re many thanks.<br><br>Fred<br><br><br><br><br><br></div> </div></body>
</html>