Re: [fpc-devel] Smart-linking on linux/x86-64

2022-07-09 Thread Joost van der Sluis via fpc-devel
Op 05-07-2022 om 23:45 schreef Sven Barth via fpc-devel: Joost van der Sluis via fpc-devel > schrieb am Di., 5. Juli 2022, 22:37: I think many people would be glad if you'd solve the issue of smart linking with debug information when an external linker

Re: [fpc-devel] Smart-linking on linux/x86-64

2022-07-07 Thread Joost van der Sluis via fpc-devel
Op 05-07-2022 om 11:51 schreef Sergei Gorelkin via fpc-devel: 05/07/2022 09:39, Sven Barth via fpc-devel wrote: Joost van der Sluis via fpc-devel > schrieb am Di., 5. Juli 2022, 00:17: The problem is that *something* would need to reference the debug

Re: [fpc-devel] Smart-linking on linux/x86-64

2022-07-07 Thread Christo Crause via fpc-devel
On Tue, Jul 5, 2022 at 11:45 PM Sven Barth via fpc-devel < fpc-devel@lists.freepascal.org> wrote: > > I think many people would be glad if you'd solve the issue of smart > linking with debug information when an external linker is used. :) > > Regards, > Sven > >> Indeed, a similar problem exists

Re: [fpc-devel] Smart-linking on linux/x86-64

2022-07-06 Thread Sergei Gorelkin via fpc-devel
05/07/2022 09:39, Sven Barth via fpc-devel wrote: Joost van der Sluis via fpc-devel > schrieb am Di., 5. Juli 2022, 00:17: But my real issue is this: on Windows, using the internal linker, this procedure is also omitted *with* Dwarf debug-data. As

Re: [fpc-devel] Smart-linking on linux/x86-64

2022-07-05 Thread Sven Barth via fpc-devel
Joost van der Sluis via fpc-devel schrieb am Di., 5. Juli 2022, 22:37: > > > > Op 05-07-2022 om 08:39 schreef Sven Barth via fpc-devel: > > Joost van der Sluis via fpc-devel > > schrieb am Di., 5. Juli 2022, > > 00:17: > > Any suggestions? Is it

Re: [fpc-devel] Smart-linking on linux/x86-64

2022-07-05 Thread Joost van der Sluis via fpc-devel
Op 05-07-2022 om 08:39 schreef Sven Barth via fpc-devel: Joost van der Sluis via fpc-devel > schrieb am Di., 5. Juli 2022, 00:17: Any suggestions? Is it possible to place every fde in it's own section to solve this? The problem is that

Re: [fpc-devel] Smart-linking on linux/x86-64

2022-07-05 Thread Sven Barth via fpc-devel
Joost van der Sluis via fpc-devel schrieb am Di., 5. Juli 2022, 00:17: > > But my real issue is this: on Windows, using the internal linker, this > procedure is also omitted *with* Dwarf debug-data. As you implied. > > The problem is, though, that the CFI-information (the FDE) is not > omitted.

Re: [fpc-devel] Smart-linking on linux/x86-64

2022-07-04 Thread Joost van der Sluis via fpc-devel
Op 04-07-2022 om 23:37 schreef Sven Barth via fpc-devel: Am 04.07.2022 um 19:52 schrieb Joost van der Sluis via fpc-devel: Hi all, I have a very small application, see below. One procedure is not called at all. But when I compile with ppcx64 -XX -CX testcfi.pp The

Re: [fpc-devel] Smart-linking on linux/x86-64

2022-07-04 Thread Sven Barth via fpc-devel
Am 04.07.2022 um 19:52 schrieb Joost van der Sluis via fpc-devel: Hi all, I have a very small application, see below. One procedure is not called at all. But when I compile with ppcx64 -XX -CX testcfi.pp The P$TESTCFI_$$_NEVERCALLES symbol is still in the executable. On Windows (internal

Re: [fpc-devel] Smart-linking on linux/x86-64

2022-07-04 Thread Martin Frb via fpc-devel
On 04/07/2022 21:11, Michael Van Canneyt via fpc-devel wrote: On Mon, 4 Jul 2022, Joost van der Sluis via fpc-devel wrote: Hi all, I have a very small application, see below. One procedure is not called at all. But when I compile with ppcx64 -XX -CX testcfi.pp The

Re: [fpc-devel] Smart-linking on linux/x86-64

2022-07-04 Thread Michael Van Canneyt via fpc-devel
On Mon, 4 Jul 2022, Joost van der Sluis via fpc-devel wrote: Hi all, I have a very small application, see below. One procedure is not called at all. But when I compile with ppcx64 -XX -CX testcfi.pp The P$TESTCFI_$$_NEVERCALLES symbol is still in the executable. On Windows (internal