Explorar o código

* WebAssembly threads internal linker: set the global type of threadvar globals to wbt_i32

Nikolay Nikolov hai 1 ano
pai
achega
f38b12240d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      compiler/ogwasm.pas

+ 2 - 0
compiler/ogwasm.pas

@@ -4249,6 +4249,7 @@ implementation
                         objsym.TlsGlobalSym.objsection:=nil;
                         objsym.TlsGlobalSym.offset:=0;
                         objsym.TlsGlobalSym.size:=1;
+                        objsym.TlsGlobalSym.LinkingData.GlobalType:=wbt_i32;
                       end
                     else
                       objsym.typ:=AT_DATA;
@@ -4274,6 +4275,7 @@ implementation
                           objsym.TlsGlobalSym.objsection.WriteZeros(1);
                         objsym.TlsGlobalSym.offset:=0;
                         objsym.TlsGlobalSym.size:=1;
+                        objsym.TlsGlobalSym.LinkingData.GlobalType:=wbt_i32;
                       end
                     else
                       objsym.typ:=AT_DATA;