mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 07:39:25 +02:00
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 -
This commit is contained in:
parent
001057b52e
commit
56ad37133e
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user