<div dir="auto"><div><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Martin Frb via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Fr., 24. Apr. 2026, 17:13:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">See the example below. Complied on Linux and windows. (fpc 3.3.1)<br>
fpc -O- -gw3 project.lpr<br>
<br>
then using<br>
strings project | grep TLIST<br>
<br>
On linux entries for *all* methods of TList are present.<br>
On Windows that is NOT the case.<br>
<br>
Why?<br>
<br>
<br>
<br>
program Project1;<br>
uses classes;<br>
var l: TList;<br>
begin<br>
l := TList.Create;<br>
l.add(nil);<br>
end.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">On Windows the internal linker can better omit unused sections while debug information is enabled while with ELF it can't. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>