mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 15:49:26 +02:00
* Fix bug report 7210
git-svn-id: trunk@18154 -
This commit is contained in:
parent
2b54f5f961
commit
bafbbe9f0f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user