Marco van de Voort wrote
> In our previous episode, Michael Van Canneyt said:
>> > Does it work for all situations?  I remember a bug for the rust
>> compiler
>> > that broke libraries when --gc-sections was used, because it removed
>> the
>> > metadata that rust needed to load the library.  One of the fpc devs can
>> > probably say whether fpc may have a similar problem.
>> 
>> You risk losing e.g. resources. 
>> This is typically what needs to be investigated.
> 
> That also goes for the main application. Such sections should be marked
> with
> KEEP() in the linker script.
> _______________________________________________
> fpc-pascal maillist  -  

> fpc-pascal@.freepascal

> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Yes and it is valable too for programs compiled with -XX.

Fre;D



-----
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Size-of-program-vs-library-tp5718200p5728617.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to