* Fix bug report 7210

git-svn-id: trunk@18154 -
This commit is contained in:
pierre 2011-08-09 15:52:03 +00:00
parent 2b54f5f961
commit bafbbe9f0f

View File

@ -481,7 +481,14 @@ interface
begin
AsmLn;
AsmWrite('SECTION ');
AsmWrite(secnames[atype]);
{ go32v2 stub only loads .text and .data sections, and allocates space for .bss.
Thus, data which normally goes into .rodata and .rodata_norel sections must
end up in .data section }
if (atype in [sec_rodata,sec_rodata_norel]) and
(target_info.system=system_i386_go32v2) then
AsmWrite('.data')
else
AsmWrite(secnames[atype]);
if create_smartlink_sections and
(atype<>sec_bss) and
(aname<>'') then