mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-08 15:45:58 +02:00
* fix for Mantis #37559: the adjustment of the section type should only be done for internal COFF writers
git-svn-id: trunk@46410 -
This commit is contained in:
parent
dc4637862f
commit
17d583a419
@ -1315,12 +1315,15 @@ implementation
|
|||||||
{arm_attribute} [oso_data]
|
{arm_attribute} [oso_data]
|
||||||
);
|
);
|
||||||
begin
|
begin
|
||||||
if (aType in [sec_rodata,sec_rodata_norel]) then
|
if target_asm.id in asms_int_coff then
|
||||||
begin
|
begin
|
||||||
if (target_info.system in systems_all_windows) then
|
if (aType in [sec_rodata,sec_rodata_norel]) then
|
||||||
aType:=sec_rodata_norel
|
begin
|
||||||
else
|
if (target_info.system in systems_all_windows) then
|
||||||
aType:=sec_data;
|
aType:=sec_rodata_norel
|
||||||
|
else
|
||||||
|
aType:=sec_data;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
result:=secoptions[atype];
|
result:=secoptions[atype];
|
||||||
{$ifdef OMFOBJSUPPORT}
|
{$ifdef OMFOBJSUPPORT}
|
||||||
|
Loading…
Reference in New Issue
Block a user