Browse Source

m68k-amiga: hack to avoid a linker (vlink) warning about merging sections with different flags together. Amiga doesn't support true read only sections anyway

git-svn-id: trunk@44757 -
Károly Balogh 5 years ago
parent
commit
56ad37133e
2 changed files with 5 additions and 0 deletions
  1. 4 0
      compiler/aggas.pas
  2. 1 0
      compiler/m68k/ag68kvasm.pas

+ 4 - 0
compiler/aggas.pas

@@ -492,6 +492,10 @@ implementation
                  writer.AsmWrite('.section ');
                  sectionflags:=true;
                  sectionprogbits:=true;
+                 { hack, to avoid linker warnings on Amiga/Atari, when vlink merges
+                   rodata sections into data sections, better solution welcomed... }
+                 if atype in [sec_rodata,sec_rodata_norel] then
+                   include(secflags,SF_W);
                end;
            end;
          system_i386_win32,

+ 1 - 0
compiler/m68k/ag68kvasm.pas

@@ -76,6 +76,7 @@ unit ag68kvasm;
             case target_info.system of
               { stop vlink from complaining when it merges ro sections into rw ones (KB) }
               system_m68k_atari: result:='adrw';
+              system_m68k_amiga: result:='adrw';
             else
               result:='adr';
             end;