Mark .noinit section with nobits flag.

This commit is contained in:
ccrause 2022-08-14 19:49:26 +02:00 committed by FPK
parent f532cf1698
commit a135940cf5

View File

@ -1339,6 +1339,9 @@ implementation
TObjData.sectiontype2progbitsandflags(sectype,secprogbits,secflags);
name:=stringdup(Aname);
sec:=nil;
// .noinit section should be marked with the nobits flag
if (sectype=sec_user) and (Aname='.noinit') then
secprogbits:=SPB_NOBITS;
end;
constructor tai_section.Create_proc(Asectype:TAsmSectiontype;