m68k: map sec_rodata as read-write in the vasm writer, to silence some vlink warnings, when it writes the relocations in a rodata section

git-svn-id: trunk@36501 -
This commit is contained in:
Károly Balogh 2017-06-14 18:07:36 +00:00
parent 3f3c4808ee
commit c5222d7199

View File

@ -68,9 +68,11 @@ unit ag68kvasm;
case atype of
sec_code, sec_fpc, sec_init, sec_fini:
result:='acrx';
sec_data:
{ map sec_rodata as read-write, otherwise the linker (vlink) complains if it
has to write into the relocations in a rodata section. (KB) }
sec_data, sec_rodata:
result:='adrw';
sec_rodata, sec_rodata_norel:
sec_rodata_norel:
result:='adr';
sec_bss, sec_threadvar:
result:='aurw';