* Index pointer field must be set to correct value in EXECUTABLE as it is used at program launch

git-svn-id: trunk@17897 -
This commit is contained in:
pierre 2011-07-01 13:15:00 +00:00
parent b3e1ba70e9
commit 8e2da253f9

View File

@ -180,11 +180,18 @@ const
_tls_used : TTlsDirectory = (
data_start : @tls_data_start;
data_end : @tls_data_end;
index_pointer : nil;
index_pointer : @tls_index;
callbacks_pointer : @tls_callbacks;
zero_fill_size : 0;
flags : 0;
); public name '__tls_used';
); public name
{ This should be the same name as in mingw/tlsup.c code }
{$ifdef win32}
'__tls_used';
{$else }
'_tls_used';
{$endif not win32}
{$endif FPC_USE_TLS_DIRECTORY}