浏览代码

* emit sec_fpc as sec_data, because custom section names aren't supported

git-svn-id: branches/wasm@46848 -
nickysn 5 年之前
父节点
当前提交
5c27030faf
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/wasm32/agllvmmc.pas

+ 2 - 0
compiler/wasm32/agllvmmc.pas

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