瀏覽代碼

atari: workaround/silence of a vlink warning, when it merges ro sections into rw ones. there are no ro sections on atari anyway

git-svn-id: trunk@37878 -
Károly Balogh 7 年之前
父節點
當前提交
4c0e6980db
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      compiler/m68k/ag68kvasm.pas

+ 6 - 1
compiler/m68k/ag68kvasm.pas

@@ -73,7 +73,12 @@ unit ag68kvasm;
           sec_data, sec_rodata:
             result:='adrw';
           sec_rodata_norel:
-            result:='adr';
+            case target_info.system of
+              { stop vlink from complaining when it merges ro sections into rw ones (KB) }
+              system_m68k_atari: result:='adrw';
+            else
+              result:='adr';
+            end;
           sec_bss, sec_threadvar:
             result:='aurw';
           sec_stab, sec_stabstr: