浏览代码

* at least clang can savely generate relocatable readonly sections, so use "r" for aarch64-win64

git-svn-id: trunk@44931 -
svenbarth 5 年之前
父节点
当前提交
f150fc6b7c
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      compiler/aggas.pas

+ 4 - 1
compiler/aggas.pas

@@ -432,7 +432,10 @@ implementation
 
 
           { TODO: these need a fix to become read-only }
           { TODO: these need a fix to become read-only }
           sec_rodata, sec_rodata_norel:
           sec_rodata, sec_rodata_norel:
-            result:='d';
+            if target_info.system=system_aarch64_win64 then
+              result:='r'
+            else
+              result:='d';
 
 
           sec_bss:
           sec_bss:
             result:='b';
             result:='b';