mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 18:25: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
@ -1314,6 +1314,8 @@ implementation
|
|||||||
{gcc_except_table} [oso_data,oso_load],
|
{gcc_except_table} [oso_data,oso_load],
|
||||||
{arm_attribute} [oso_data]
|
{arm_attribute} [oso_data]
|
||||||
);
|
);
|
||||||
|
begin
|
||||||
|
if target_asm.id in asms_int_coff then
|
||||||
begin
|
begin
|
||||||
if (aType in [sec_rodata,sec_rodata_norel]) then
|
if (aType in [sec_rodata,sec_rodata_norel]) then
|
||||||
begin
|
begin
|
||||||
@ -1322,6 +1324,7 @@ implementation
|
|||||||
else
|
else
|
||||||
aType:=sec_data;
|
aType:=sec_data;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
result:=secoptions[atype];
|
result:=secoptions[atype];
|
||||||
{$ifdef OMFOBJSUPPORT}
|
{$ifdef OMFOBJSUPPORT}
|
||||||
{ in the huge memory model, BSS data is actually written in the regular
|
{ in the huge memory model, BSS data is actually written in the regular
|
||||||
|
Loading…
Reference in New Issue
Block a user