diff --git a/compiler/ogcoff.pas b/compiler/ogcoff.pas index 6149dba25a..02a515a6f7 100644 --- a/compiler/ogcoff.pas +++ b/compiler/ogcoff.pas @@ -2288,6 +2288,9 @@ const pemagic : array[0..3] of byte = ( internalobjdata.writebytes(emptyint,sizeof(emptyint)); if target_info.system=system_x86_64_win64 then internalobjdata.writebytes(emptyint,sizeof(emptyint)); + { be sure that this will not be removed } + idata4objsection.SecOptions:=idata4objsection.SecOptions + [oso_keep]; + idata5objsection.SecOptions:=idata5objsection.SecOptions + [oso_keep]; end; function AddImport(const afuncname,amangledname:string; AOrdNr:longint;isvar:boolean):TObjSymbol;