mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-02 12:02:31 +02:00
* section thread vars need to be access with the symbol type AT_TLS
git-svn-id: trunk@43073 -
This commit is contained in:
parent
c652cd629a
commit
4064c5f39b
@ -282,9 +282,9 @@ implementation
|
|||||||
begin
|
begin
|
||||||
if gvs.localloc.loc=LOC_INVALID then
|
if gvs.localloc.loc=LOC_INVALID then
|
||||||
if not(vo_is_weak_external in gvs.varoptions) then
|
if not(vo_is_weak_external in gvs.varoptions) then
|
||||||
reference_reset_symbol(location.reference,current_asmdata.RefAsmSymbol(gvs.mangledname,AT_DATA,use_indirect_symbol(gvs)),0,location.reference.alignment,[])
|
reference_reset_symbol(location.reference,current_asmdata.RefAsmSymbol(gvs.mangledname,AT_TLS,use_indirect_symbol(gvs)),0,location.reference.alignment,[])
|
||||||
else
|
else
|
||||||
reference_reset_symbol(location.reference,current_asmdata.WeakRefAsmSymbol(gvs.mangledname,AT_DATA),0,location.reference.alignment,[])
|
reference_reset_symbol(location.reference,current_asmdata.WeakRefAsmSymbol(gvs.mangledname,AT_TLS),0,location.reference.alignment,[])
|
||||||
else
|
else
|
||||||
location:=gvs.localloc;
|
location:=gvs.localloc;
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user