mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 05:29:21 +02:00
Mark .noinit section with nobits flag.
This commit is contained in:
parent
f532cf1698
commit
a135940cf5
@ -1339,6 +1339,9 @@ implementation
|
|||||||
TObjData.sectiontype2progbitsandflags(sectype,secprogbits,secflags);
|
TObjData.sectiontype2progbitsandflags(sectype,secprogbits,secflags);
|
||||||
name:=stringdup(Aname);
|
name:=stringdup(Aname);
|
||||||
sec:=nil;
|
sec:=nil;
|
||||||
|
// .noinit section should be marked with the nobits flag
|
||||||
|
if (sectype=sec_user) and (Aname='.noinit') then
|
||||||
|
secprogbits:=SPB_NOBITS;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor tai_section.Create_proc(Asectype:TAsmSectiontype;
|
constructor tai_section.Create_proc(Asectype:TAsmSectiontype;
|
||||||
|
Loading…
Reference in New Issue
Block a user