Browse Source

* WebAssembly threads internal linker: set threadvar globals as mutable

Nikolay Nikolov 1 year ago
parent
commit
07b4ceac49
1 changed files with 2 additions and 0 deletions
  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;