浏览代码

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

git-svn-id: branches/wasm@48246 -
nickysn 4 年之前
父节点
当前提交
f83ef3c610
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
     begin
-      if atype=sec_fpc then
+      if (atype=sec_fpc) or (atype=sec_threadvar) then
         atype:=sec_data;
       Result:=inherited sectionname(atype, aname, aorder)+',"",@';
     end;