Re: [fpc-devel] Some questions about compiler work on x86_64-win64

2017-04-10 Thread Bishop
First of all sorry that it take so long time for my answer. 03/19/17 10:38:35, Sven Barth via fpc-devel : > If it is so important to you: patches are welcome. But keep in mind that the default needs to be the status quo. Thanks. This is important to me to know that changes that i want to see

Re: [fpc-devel] Some questions about compiler work on x86_64-win64

2017-03-19 Thread Sven Barth via fpc-devel
Am 18.03.2017 23:11 schrieb "Bishop" : > > 03/18/17 00:51:05, Sven Barth via fpc-devel < fpc-devel@lists.freepascal.org>: > > > > Bo, the main sense of this is to detect when a new thread is started and more importantly terminated cause only with this we can free the threadvar area of the thread ac

Re: [fpc-devel] Some questions about compiler work on x86_64-win64

2017-03-18 Thread Bishop
03/18/17 00:51:05, Sven Barth via fpc-devel : > Bo, the main sense of this is to detect when a new thread is started and more importantly terminated cause only with this we can free the threadvar area of the thread accordingly (if the thread is an external one, not one started using BeginThr

Re: [fpc-devel] Some questions about compiler work on x86_64-win64

2017-03-17 Thread Sven Barth via fpc-devel
Am 17.03.2017 22:16 schrieb "Bishop" : > > 03/17/17 11:56:47, Sven Barth via fpc-devel < fpc-devel@lists.freepascal.org>: > > >> 1) EXE-file contained .CRT section. As i understand it contained one pointer to _FPC_Tls_Callback functions from RTL. Is it used only for this? > > Correct. > And main se

Re: [fpc-devel] Some questions about compiler work on x86_64-win64

2017-03-17 Thread Bishop
03/17/17 11:56:47, Sven Barth via fpc-devel : >> 1) EXE-file contained .CRT section. As i understand it contained one pointer to _FPC_Tls_Callback functions from RTL. Is it used only for this? > Correct. And main sence of this function is allocated ThreadVar

Re: [fpc-devel] Some questions about compiler work on x86_64-win64

2017-03-17 Thread Jonas Maebe
On 17/03/17 10:56, Sven Barth via fpc-devel wrote: I might remember it incorrectly, but I think that Microsoft says that all accesses should be RIP relative to reduce the need for relocations. Probably also for ASLR. Jonas ___ fpc-devel maillist -

Re: [fpc-devel] Some questions about compiler work on x86_64-win64

2017-03-17 Thread Sven Barth via fpc-devel
Am 17.03.2017 08:08 schrieb "Bishop via fpc-devel" < fpc-devel@lists.freepascal.org>: > > I have some questions about compiler work on x86_64-win64. > > 1) EXE-file contained .CRT section. As i understand it contained one pointer to _FPC_Tls_Callback functions from RTL. Is it used only for this? C

[fpc-devel] Some questions about compiler work on x86_64-win64

2017-03-17 Thread Bishop via fpc-devel
I have some questions about compiler work on x86_64-win64. 1) EXE-file contained .CRT section. As i understand it contained one pointer to _FPC_Tls_Callback functions from RTL. Is it used only for this? 2) Why INITFINAL table on both Windows and Linux puted to .data section? Is we need to c