Browse Source

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

git-svn-id: trunk@44931 -
svenbarth 5 years ago
parent
commit
f150fc6b7c
1 changed files with 4 additions and 1 deletions
  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 }
           sec_rodata, sec_rodata_norel:
-            result:='d';
+            if target_info.system=system_aarch64_win64 then
+              result:='r'
+            else
+              result:='d';
 
           sec_bss:
             result:='b';