mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 08:59:27 +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
|
||||
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}
|
||||
|
||||
|
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user