mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 11:06:19 +02:00
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:
parent
3f3c4808ee
commit
c5222d7199
@ -68,9 +68,11 @@ unit ag68kvasm;
|
|||||||
case atype of
|
case atype of
|
||||||
sec_code, sec_fpc, sec_init, sec_fini:
|
sec_code, sec_fpc, sec_init, sec_fini:
|
||||||
result:='acrx';
|
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';
|
result:='adrw';
|
||||||
sec_rodata, sec_rodata_norel:
|
sec_rodata_norel:
|
||||||
result:='adr';
|
result:='adr';
|
||||||
sec_bss, sec_threadvar:
|
sec_bss, sec_threadvar:
|
||||||
result:='aurw';
|
result:='aurw';
|
||||||
|
Loading…
Reference in New Issue
Block a user