Explorar el Código

* WebAssembly threads internal linker: set threadvar globals as mutable

Nikolay Nikolov hace 1 año
padre
commit
07b4ceac49
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      compiler/ogwasm.pas

+ 2 - 0
compiler/ogwasm.pas

@@ -4253,6 +4253,7 @@ implementation
                         objsym.TlsGlobalSym.offset:=0;
                         objsym.TlsGlobalSym.size:=1;
                         objsym.TlsGlobalSym.LinkingData.GlobalType:=wbt_i32;
+                        objsym.TlsGlobalSym.LinkingData.GlobalIsMutable:=true;
                       end
                     else
                       objsym.typ:=AT_DATA;
@@ -4281,6 +4282,7 @@ implementation
                         objsym.TlsGlobalSym.offset:=0;
                         objsym.TlsGlobalSym.size:=1;
                         objsym.TlsGlobalSym.LinkingData.GlobalType:=wbt_i32;
+                        objsym.TlsGlobalSym.LinkingData.GlobalIsMutable:=true;
                       end
                     else
                       objsym.typ:=AT_DATA;