Browse Source

* avoid creating threadvar sections in the LLVM-MC WebAssembly output

git-svn-id: branches/wasm@48246 -
nickysn 4 years ago
parent
commit
f83ef3c610
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/wasm32/agllvmmc.pas

+ 1 - 1
compiler/wasm32/agllvmmc.pas

@@ -165,7 +165,7 @@ implementation
 
 
   function TLLVMMachineCodePlaygroundAssembler.sectionname(atype: TAsmSectiontype; const aname: string; aorder: TAsmSectionOrder): string;
   function TLLVMMachineCodePlaygroundAssembler.sectionname(atype: TAsmSectiontype; const aname: string; aorder: TAsmSectionOrder): string;
     begin
     begin
-      if atype=sec_fpc then
+      if (atype=sec_fpc) or (atype=sec_threadvar) then
         atype:=sec_data;
         atype:=sec_data;
       Result:=inherited sectionname(atype, aname, aorder)+',"",@';
       Result:=inherited sectionname(atype, aname, aorder)+',"",@';
     end;
     end;