mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 23:10:28 +02:00
Replace __tls_used for win64 by an alias of _tls_used
git-svn-id: trunk@36120 -
This commit is contained in:
parent
b882ba5fd2
commit
eb378c1b94
@ -143,23 +143,16 @@ const
|
|||||||
zero_fill_size : 0;
|
zero_fill_size : 0;
|
||||||
flags : 0;
|
flags : 0;
|
||||||
); cvar; public;
|
); cvar; public;
|
||||||
|
|
||||||
{$ifdef win64}
|
{$ifdef win64}
|
||||||
{ This is a hack to support external linking.
|
{ This was a hack to support external linking.
|
||||||
All released win64 versions of GNU binutils miss proper prefix handling
|
All released win64 versions of GNU binutils miss proper prefix handling
|
||||||
when searching for _tls_used and expect two leading underscores.
|
when searching for _tls_used and expect two leading underscores.
|
||||||
The issue has been fixed in binutils snapshots, but not released yet.
|
The issue has been fixed in binutils snapshots, but not released yet.
|
||||||
|
|
||||||
TODO: This should be removed as soon as next version of binutils (>2.21) is
|
Using alias allows to support both older and newer binutils.
|
||||||
released and we upgrade to it. }
|
}
|
||||||
__tls_used : TTlsDirectory = (
|
alias = '__tls_used';
|
||||||
data_start : @tls_data_start;
|
|
||||||
data_end : @tls_data_end;
|
|
||||||
index_pointer : @_tls_index;
|
|
||||||
callbacks_pointer : @tls_callbacks;
|
|
||||||
zero_fill_size : 0;
|
|
||||||
flags : 0;
|
|
||||||
); cvar; public;
|
|
||||||
{$endif win64}
|
{$endif win64}
|
||||||
|
|
||||||
{$endif FPC_USE_TLS_DIRECTORY}
|
{$endif FPC_USE_TLS_DIRECTORY}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user