* Windows: Prevent removal of the TLS directory by the linker when RTL is compiled with -O4 or when inlining is enabled.

git-svn-id: trunk@49400 -
This commit is contained in:
yury 2021-05-25 16:03:34 +00:00
parent 8006900e8e
commit 73448deda6
2 changed files with 4 additions and 2 deletions

View File

@ -31,8 +31,9 @@
var
tlsdir: record end; external name '__tls_used';
procedure LinkIn(p1,p2,p3: Pointer); inline;
function LinkIn(p1,p2,p3: Pointer): pointer;
begin
LinkIn:=p1;
end;
{$endif}

View File

@ -36,8 +36,9 @@ unit sysinit;
var
tlsdir: record end; external name '_tls_used';
procedure LinkIn(p1,p2,p3: Pointer); inline;
function LinkIn(p1,p2,p3: Pointer): pointer;
begin
LinkIn:=p1;
end;
{$endif}