mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 17:47:56 +02:00
m68k: avoid more vlink warnings regarding changed section attributes, when the target system has no write-protected sections
git-svn-id: trunk@45470 -
This commit is contained in:
parent
58af742f3a
commit
6cc818cbe3
@ -515,8 +515,10 @@ implementation
|
||||
usesectionflags:=true;
|
||||
usesectionprogbits:=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
|
||||
rodata sections into data sections. Also avoid the warning when
|
||||
the linker realizes the code section cannot be write protected and
|
||||
adds the writable bit. }
|
||||
if atype in [sec_code,sec_rodata,sec_rodata_norel] then
|
||||
include(secflags,SF_W);
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user