[fpc-pascal] Size of program vs library ?

Marco van de Voort marcov at stack.nl
Tue May 16 11:04:29 CEST 2017


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.



More information about the fpc-pascal mailing list