[fpc-devel] NONE smart link broken on windows?
Sven Barth
pascaldragon at googlemail.com
Sat Apr 25 00:10:58 CEST 2026
Martin Frb via fpc-devel <fpc-devel at lists.freepascal.org> schrieb am Fr.,
24. Apr. 2026, 17:13:
> See the example below. Complied on Linux and windows. (fpc 3.3.1)
> fpc -O- -gw3 project.lpr
>
> then using
> strings project | grep TLIST
>
> On linux entries for *all* methods of TList are present.
> On Windows that is NOT the case.
>
> Why?
>
>
>
> program Project1;
> uses classes;
> var l: TList;
> begin
> l := TList.Create;
> l.add(nil);
> end.
>
On Windows the internal linker can better omit unused sections while debug
information is enabled while with ELF it can't.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20260425/f5033547/attachment.htm>
More information about the fpc-devel
mailing list