Browse Source

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

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