[fpc-devel] NONE smart link broken on windows?
Martin Frb
lazarus at mfriebe.de
Sat Apr 25 00:57:16 CEST 2026
On 25/04/2026 00:10, Sven Barth via fpc-devel wrote:
> 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.
>
>
> On Windows the internal linker can better omit unused sections while
> debug information is enabled while with ELF it can't.
>
Is there an option to turn that "better" off?
As a user (if I hadn't learned how to deal with FPC debug differences to
other development tools), I would expect those not to be stripped.
As a user, if I used a TList in my app, I would want to be able to evaluate
SomeList.GetCount()
This didn't matter when GDB couldn't watch function call results. But
now we have an alternative.
---------------
Actually, what debuggers are used by core team members? Anyone still
using gdb in some cases (including OOP targets?)
---------------
Btw, any idea where the compiler stores the target pointer size?
The code currently uses
tai_const.create_8bit(sizeof(pint))
But that can't be right when cross compiling?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20260425/a92af793/attachment.htm>
More information about the fpc-devel
mailing list