mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 05:09:07 +02:00
* 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:
parent
8006900e8e
commit
73448deda6
@ -31,8 +31,9 @@
|
|||||||
var
|
var
|
||||||
tlsdir: record end; external name '__tls_used';
|
tlsdir: record end; external name '__tls_used';
|
||||||
|
|
||||||
procedure LinkIn(p1,p2,p3: Pointer); inline;
|
function LinkIn(p1,p2,p3: Pointer): pointer;
|
||||||
begin
|
begin
|
||||||
|
LinkIn:=p1;
|
||||||
end;
|
end;
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
|
@ -36,8 +36,9 @@ unit sysinit;
|
|||||||
var
|
var
|
||||||
tlsdir: record end; external name '_tls_used';
|
tlsdir: record end; external name '_tls_used';
|
||||||
|
|
||||||
procedure LinkIn(p1,p2,p3: Pointer); inline;
|
function LinkIn(p1,p2,p3: Pointer): pointer;
|
||||||
begin
|
begin
|
||||||
|
LinkIn:=p1;
|
||||||
end;
|
end;
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user